Class MessageDetailsExtended
- java.lang.Object
-
- com.courier.api.resources.messages.types.MessageDetailsExtended
-
- All Implemented Interfaces:
IMessageDetails
public final class MessageDetailsExtended extends java.lang.Object implements IMessageDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMessageDetailsExtended._FinalStagestatic classMessageDetailsExtended.Builderstatic interfaceMessageDetailsExtended.ClickedStagestatic interfaceMessageDetailsExtended.DeliveredStagestatic interfaceMessageDetailsExtended.EnqueuedStagestatic interfaceMessageDetailsExtended.EventStagestatic interfaceMessageDetailsExtended.IdStagestatic interfaceMessageDetailsExtended.NotificationStagestatic interfaceMessageDetailsExtended.OpenedStagestatic interfaceMessageDetailsExtended.RecipientStagestatic interfaceMessageDetailsExtended.SentStagestatic interfaceMessageDetailsExtended.StatusStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageDetailsExtended.IdStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()longgetClicked()longgetDelivered()longgetEnqueued()java.util.Optional<java.lang.String>getError()java.lang.StringgetEvent()java.lang.StringgetId()java.lang.StringgetNotification()longgetOpened()java.util.Optional<java.util.List<java.util.Map<java.lang.String,java.lang.Object>>>getProviders()java.util.Optional<Reason>getReason()java.lang.StringgetRecipient()longgetSent()MessageStatusgetStatus()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceIMessageDetails- Returns:
- A unique identifier associated with the message you wish to retrieve (results from a send).
-
getStatus
public MessageStatus getStatus()
- Specified by:
getStatusin interfaceIMessageDetails- Returns:
- The current status of the message.
-
getEnqueued
public long getEnqueued()
- Specified by:
getEnqueuedin interfaceIMessageDetails- Returns:
- A UTC timestamp at which Courier received the message request. Stored as a millisecond representation of the Unix epoch.
-
getSent
public long getSent()
- Specified by:
getSentin interfaceIMessageDetails- Returns:
- A UTC timestamp at which Courier passed the message to the Integration provider. Stored as a millisecond representation of the Unix epoch.
-
getDelivered
public long getDelivered()
- Specified by:
getDeliveredin interfaceIMessageDetails- Returns:
- A UTC timestamp at which the Integration provider delivered the message. Stored as a millisecond representation of the Unix epoch.
-
getOpened
public long getOpened()
- Specified by:
getOpenedin interfaceIMessageDetails- Returns:
- A UTC timestamp at which the recipient opened a message for the first time. Stored as a millisecond representation of the Unix epoch.
-
getClicked
public long getClicked()
- Specified by:
getClickedin interfaceIMessageDetails- Returns:
- A UTC timestamp at which the recipient clicked on a tracked link for the first time. Stored as a millisecond representation of the Unix epoch.
-
getRecipient
public java.lang.String getRecipient()
- Specified by:
getRecipientin interfaceIMessageDetails- Returns:
- A unique identifier associated with the recipient of the delivered message.
-
getEvent
public java.lang.String getEvent()
- Specified by:
getEventin interfaceIMessageDetails- Returns:
- A unique identifier associated with the event of the delivered message.
-
getNotification
public java.lang.String getNotification()
- Specified by:
getNotificationin interfaceIMessageDetails- Returns:
- A unique identifier associated with the notification of the delivered message.
-
getError
public java.util.Optional<java.lang.String> getError()
- Specified by:
getErrorin interfaceIMessageDetails- Returns:
- A message describing the error that occurred.
-
getReason
public java.util.Optional<Reason> getReason()
- Specified by:
getReasonin interfaceIMessageDetails- Returns:
- The reason for the current status of the message.
-
getProviders
public java.util.Optional<java.util.List<java.util.Map<java.lang.String,java.lang.Object>>> getProviders()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static MessageDetailsExtended.IdStage builder()
-
-