com.gu.memsub.Plan.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of membership-common_2.12 Show documentation
Show all versions of membership-common_2.12 Show documentation
Scala library for common Guardian Membership/Subscriptions functionality.
package com.gu.memsub
sealed trait Status {
def name: String
}
case class Legacy() extends Status {
override val name: String = "legacy"
}
case class Current() extends Status {
override val name: String = "current"
}
case class Upcoming() extends Status {
override val name: String = "upcoming"
}
object Status {
val legacy = Legacy()
val current = Current()
val upcoming = Upcoming()
}