Skip to content

Instantly share code, notes, and snippets.

@ncomet
Created April 12, 2019 05:52
Show Gist options
  • Save ncomet/88bf53b1149081cc9a8403223e6ce482 to your computer and use it in GitHub Desktop.
Save ncomet/88bf53b1149081cc9a8403223e6ce482 to your computer and use it in GitHub Desktop.
sealed class BookingOutcome
class RoomBooked(key: Key, bookingRange: ClosedRange<Instant>) : BookingOutcome()
object RoomNotAvailable : BookingOutcome()
object HotelClosed : BookingOutcome()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment