TokenCompanion

com.malliina.push.TokenCompanion
trait TokenCompanion[T <: Token] extends SimpleCompanion[String, T]

Base companion object for Tokens.

Attributes

Graph
Supertypes
class SimpleCompanion[String, T]
class ValidatingCompanion[String, T]
class Object
trait Matchable
class Any
Known subtypes
object ADMToken.type
object APNSToken.type
object GCMToken.type
object MPNSToken.type
object WNSToken.type

Members list

Concise view

Value members

Concrete methods

override def write(t: T): String

Attributes

Definition Classes
ValidatingCompanion

Inherited methods

def apply(in: String): T

Attributes

Inherited from:
SimpleCompanion
def build(input: String): Either[ErrorMessage, T]

Attributes

Inherited from:
SimpleCompanion
def defaultError(in: String): ErrorMessage

Attributes

Inherited from:
ValidatingCompanion
def isValid(in: String): Boolean

Attributes

Inherited from:
SimpleCompanion

Implicits

Inherited implicits

implicit val json: Codec[T]

Attributes

Inherited from:
ValidatingCompanion
implicit val ordering: Ordering[T]

Attributes

Inherited from:
ValidatingCompanion