inakianduaga / scala-play-car-advert

Scala Play Restful example app w/ AWS DynamoDB integration
http://petstore.swagger.io/?url=http://scala-play-car-advert.herokuapp.com/swagger/car/adverts/spec.yml
Other
2 stars 0 forks source link

Car advert classes #8

Open inakianduaga opened 8 years ago

inakianduaga commented 8 years ago

http://stackoverflow.com/questions/36635128/how-can-i-generalize-either-to-more-and-recursive-types

We need to have 2 case classes:

We also need a base AdvertTrait that implements all the shared methods, such as validate (or maybe not validate since if the object is created the data must be valid already), perhaps as a object companion static method without implementation.

inakianduaga commented 8 years ago

TODO: