Skip to content

Instantly share code, notes, and snippets.

@tmcgrath
Created October 12, 2011 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcgrath/1281606 to your computer and use it in GitHub Desktop.
Save tmcgrath/1281606 to your computer and use it in GitHub Desktop.
@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