com.gu.mobile.notifications.client

models

package models

Visibility
  1. Public
  2. All

Type Members

  1. case class AndroidMessagePayload(body: Map[String, String]) extends MessagePayload with Product with Serializable

    Android's message payload is just a map of properties - the client determines how to display that

  2. sealed trait Healthcheck extends AnyRef

  3. case class IOSMessagePayload(body: String, customProperties: Map[String, String], category: Option[String] = scala.None) extends MessagePayload with Product with Serializable

    IOS message payload is a String body and a map of custom properties that the app can use

  4. sealed trait MessagePayload extends AnyRef

    Models for interfacing with the services API's JSON endpoint

  5. case class MessagePayloads(ios: Option[IOSMessagePayload], android: Option[AndroidMessagePayload]) extends Product with Serializable

  6. case class Notification(type: String, uniqueIdentifier: String, sender: String, target: Target, timeToLiveInSeconds: Int, payloads: MessagePayloads, metadata: Map[String, String]) extends Product with Serializable

  7. case class Recipient(userId: String) extends Product with Serializable

  8. sealed trait Region extends AnyRef

  9. case class SendNotificationReply(messageId: String) extends Product with Serializable

    Acknowledgement of notification with a message ID for looking up statistics on that message

  10. case class Target(regions: Set[Region], topics: Set[Topic], recipients: Option[Map[String, Seq[Recipient]]] = scala.None) extends Product with Serializable

  11. case class Topic(type: String, name: String) extends Product with Serializable

  12. case class Unhealthy(errorCode: Int) extends Healthcheck with Product with Serializable

Value Members

  1. object AU extends Region with Product with Serializable

  2. object JsonImplicits

  3. object Ok extends Healthcheck with Product with Serializable

  4. object UK extends Region with Product with Serializable

  5. object US extends Region with Product with Serializable

Ungrouped