InboxMessage
An Inbox message from MCE or MAM (source). Render subject, subtitle and inboxMessage; the push copy of a message that was also sent as a push notification is on notificationMessage.
Constructors
Types
The audienceType values the server sends today.
The call-to-action on an inbox message. MAM sends it directly; on the classic MCE and push paths it is derived from the message url.
Represents the type of an inbox message.
Properties
The message call-to-action; never null. MAM sends it directly. On the classic MCE and push paths it is derived from the message url: OTHER with the url as its value, or NONE when there is no url. A deleted tombstone and a message without one carry NONE.
Audience-targeting metadata; AudienceType.DEVICE when absent (the classic MCE path never sends it). Retained even on a deleted tombstone (like requestId). Passed through verbatim and case-sensitive; not limited to the AudienceType values, so keep an else branch.
MAM inbox CTA buttons; null on the classic MCE path. Round-trips via toJson.
The inbox body. MCE: inboxMessage (Inbox 2.0). MAM: message. A push alert (Alert+Inbox or PCTI) is on notificationMessage, not here.
The type the SDK computes for this message. MCE: from the server messageType and contentType. MAM: InboxMessageType.PCTI or InboxMessageType.ADV. A message from any other source is expected to be InboxMessageType.LEGACY. Use messageType.index for the integer value.
The push content of a message that was also sent as a push notification: MCE PCTI and Alert+Inbox, and MAM PCTI. null for an inbox-only message, and when the send has no alert.
The server the message came from: Event.Producer.MCE_MODULE or Event.Producer.MAM_MODULE.
The inbox subtitle. MCE: inboxSubtitle (Inbox 2.0). MAM: subtitle. A push subtitle (Alert+Inbox or PCTI) is on notificationMessage, not here.