Title / Description
Code case class IslandAttachContent( id: Option[Long] , parentId: Option[Long] , visibility: VisibilityObject , userId: Option[Long] , created: Option[DateTime] , modified: Option[DateTime] , islandContentType: ContentType , url: Option[String] , name: Option[String] , body: Option[String] , description: Option[String] , resourceType: Option[String] , thumbnail: Option[String] , providerName: Option[String] , providerUrl: Option[String] , published: Option[DateTime] , islandAliasId: Option[String] = None , categoryId: Option[Long] = None , groupId: Option[Long] = None ) trait IslandAttachContentJsonConversion extends IdentityLongOps with DateTimeJsonConversion { import play.api.libs.functional.syntax._ import play.api.libs.json._ implicit val IslandAttachContentValidator = new IslandAttachContentValidator implicit val IslandAttachContentListValidator = new JsonValidator[List[IslandAttachContent]]{} implicit val IslandAttachContentSeqValidator = new JsonValidator[Seq[IslandAttachContent]]{} implicit val IslandAttachContentOptValidator = new JsonValidator[Option[IslandAttachContent]]{} implicit val IslandAttachContentFormatter: Format[IslandAttachContent] = ( (__ \ "id").formatNullable[Long] ~ (__ \ "parent_id").formatNullable[Long] ~ (__ \ "visibility").format[VisibilityObject] ~ (__ \ "user_id").formatNullable[Long] ~ (__ \ "created").formatNullable[DateTime] ~ (__ \ "modified").formatNullable[DateTime] ~ (__ \ "type").format[ContentType] ~ (__ \ "url").formatNullable[String] ~ (__ \ "name").formatNullable[String] ~ (__ \ "body").formatNullable[String] ~ (__ \ "description").formatNullable[String] ~ (__ \ "resource_type").formatNullable[String] ~ (__ \ "thumbnail").formatNullable[String] ~ (__ \ "provider_name").formatNullable[String] ~ (__ \ "provider_url").formatNullable[String] ~ (__ \ "published").formatNullable[DateTime] ~ (__ \ "islandAliasId").formatNullable[String] ~ (__ \ "categoryId").formatNullable[Long] ~ (__ \ "groupId").formatNullable[Long] )(IslandAttachContent.apply, unlift(IslandAttachContent.unapply)) implicit val IslandAttachContentListReader = Reads.list[IslandAttachContent](IslandAttachContentFormatter) implicit val IslandAttachContentSeqReader = Reads.seq[IslandAttachContent](IslandAttachContentFormatter) implicit val IslandAttachContentListWriter = Writes.list[IslandAttachContent](IslandAttachContentFormatter) implicit val IslandAttachContentSeqWriter = Writes.seq[IslandAttachContent](IslandAttachContentFormatter) }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code