Skip to content

Instantly share code, notes, and snippets.

@dsugden
Last active December 12, 2015 03:28
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 dsugden/4707019 to your computer and use it in GitHub Desktop.
Save dsugden/4707019 to your computer and use it in GitHub Desktop.
sealed trait ArticlePublishedState
case object UNPUBLISHED extends ArticlePublishedState
case object PUBLISHED extends ArticlePublishedState
case object DIRTY extends ArticlePublishedState
val articlePublishedMappings = Map(UNPUBLISHED.toString() -> UNPUBLISHED,
PUBLISHED.toString() -> PUBLISHED,
DIRTY.toString() -> DIRTY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment