com.gu.mobile.notifications.client.models

legacy

package legacy

Visibility
  1. Public
  2. All

Type Members

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

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

  3. sealed trait MessagePayload extends AnyRef

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

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

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

  7. case class Target(regions: Set[Region], topics: Set[Topic]) extends Product with Serializable

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

    Generic topic for a push notification:

    Generic topic for a push notification:

    Examples:

    • Topic("football-match", "1234")
    • Topic("content", "/environment/2013/oct/21/britain-nuclear-power-station-hinkley-edf")

Value Members

  1. object AndroidMessagePayload extends Serializable

  2. object IOSMessagePayload extends Serializable

  3. object MessagePayloads extends Serializable

  4. object Notification extends Serializable

  5. object Recipient extends Serializable

  6. object Target extends Serializable

  7. object Topic extends Serializable

Ungrouped