You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
372 B
16 lines
372 B
6 years ago
|
package com.xsn.explorer
|
||
|
|
||
|
import _root_.play.api.libs.json.{JsNumber, JsString, Writes}
|
||
|
import com.alexitc.playsonify.models.{WrappedInt, WrappedString}
|
||
|
|
||
|
package object models {
|
||
|
|
||
|
implicit val stringWrites: Writes[WrappedString] = Writes { obj =>
|
||
|
JsString(obj.string)
|
||
|
}
|
||
|
|
||
|
implicit val numberWrites: Writes[WrappedInt] = Writes { obj =>
|
||
|
JsNumber(obj.int)
|
||
|
}
|
||
|
}
|