Created
October 12, 2011 15:53
-
-
Save tmcgrath/1281606 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Salat | |
case class CustomerWrapper(_id: Option[Long], | |
partnerId: Long, | |
version: Long, | |
content: List[Customer]) | |
case class Customer(id: Option[Long], | |
state: Option[CustomerState.Value], | |
name: String, | |
website: String, | |
vertical: CustomerVertical.Value, | |
leadType: Option[LeadType.Value], | |
adminAccount: Option[String], | |
dateCreated: Option[Date], | |
lastUpdated: Option[Date] | |
) | |
object CustomerState { | |
case class Value(name: String) | |
val Active = Value("active") | |
val Pending = Value("pending") | |
val Trial = Value("trial") | |
} | |
object CustomerVertical { | |
case class Value(name: String) | |
val Retail = Value("retail") | |
val Advertising = Value("advertising") | |
val Manufacturing = Value("manufacturing") | |
} | |
object LeadType { | |
case class Value(name: String) | |
val Search = Value ("search") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment