Skip to content

Instantly share code, notes, and snippets.

@oharaandrew314
Created March 15, 2022 19:57
Show Gist options
  • Save oharaandrew314/d0452eedd2dfdba9ff0ae83b59f09ba0 to your computer and use it in GitHub Desktop.
Save oharaandrew314/d0452eedd2dfdba9ff0ae83b59f09ba0 to your computer and use it in GitHub Desktop.
hexagonal-client-cat-v2
data class CatDtoV2(
val id: UUID,
val name: String,
val owner: OwnerDtoV2,
val colours: Set<ColourV2>,
val breed: BreedV2,
val favouriteFood: String
)
data class OwnerDtoV2(
val id: UUID,
val name: String
)
data class AppointmentDtoV2(
val id: UUID,
val time: Instant,
val ownerId: UUID,
val catId: UUID
)
enum class BreedV2 { AmericanShortHair, Persian, MaineCoon, BritishShortHair, Abyssinian, Bengal }
enum class ColourV2 { Brown, Grey, Orange, White }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment