-
public class GliaFcmMessageClass contains the Glia payload fields of the FMC message. See https://docs.glia.com/glia-dev/reference/webhooks for more information of push notification fields.
-
-
Field Summary
Fields Modifier and Type Field Description private final RemoteMessageremoteMessageprivate final StringeventIdprivate final StringdispatchedAtprivate final BooleanundeliveredMessagesprivate final PushNotificationChatMessagemessageprivate final PushNotificationEngagementengagementprivate final PushNotificationEngagementRequestengagementRequest
-
Constructor Summary
Constructors Constructor Description GliaFcmMessage(RemoteMessage remoteMessage, PushNotificationType eventType, String eventId, String dispatchedAt, Boolean undeliveredMessages, PushNotificationChatMessage message, PushNotificationEngagement engagement, PushNotificationEngagementRequest engagementRequest)
-
Method Summary
Modifier and Type Method Description RemoteMessagegetRemoteMessage()Contain original RemoteMessage StringgetEventId()An ID that uniquely identifies the event. StringgetDispatchedAt()A timestamp with the following ISO-8601 format: YYYY-MM-DDThh:mm:ss.sTZD (ISO-8601). BooleangetUndeliveredMessages()Set to true if any MESSAGE events prior to thisone have not been successfully delivered to the recipient. PushNotificationChatMessagegetMessage()The message value PushNotificationEngagementgetEngagement()The engagement value PushNotificationEngagementRequestgetEngagementRequest()The engagement request value PushNotificationTypegetType()The type of the event as specified in the event description. -
-
Constructor Detail
-
GliaFcmMessage
GliaFcmMessage(RemoteMessage remoteMessage, PushNotificationType eventType, String eventId, String dispatchedAt, Boolean undeliveredMessages, PushNotificationChatMessage message, PushNotificationEngagement engagement, PushNotificationEngagementRequest engagementRequest)
-
-
Method Detail
-
getRemoteMessage
@Nullable() RemoteMessage getRemoteMessage()
Contain original RemoteMessage
-
getEventId
@Nullable() String getEventId()
An ID that uniquely identifies the event.
-
getDispatchedAt
@Nullable() String getDispatchedAt()
A timestamp with the following ISO-8601 format: YYYY-MM-DDThh:mm:ss.sTZD (ISO-8601).
-
getUndeliveredMessages
@Nullable() Boolean getUndeliveredMessages()
Set to true if any MESSAGE events prior to thisone have not been successfully delivered to the recipient.
-
getMessage
@Nullable() PushNotificationChatMessage getMessage()
The message value
-
getEngagement
@Nullable() PushNotificationEngagement getEngagement()
The engagement value
-
getEngagementRequest
@Nullable() PushNotificationEngagementRequest getEngagementRequest()
The engagement request value
-
getType
@Nullable() PushNotificationType getType()
The type of the event as specified in the event description.
-
-
-
-