-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CTInboxMessage implements Parcelable
Public facing model class for type of InboxMessage
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<CTInboxMessage>CREATORprivate StringactionUrlprivate StringbgColorprivate Stringbodyprivate StringcampaignIdprivate JSONObjectcustomDataprivate JSONObjectdataprivate longdateprivate longexpiresprivate StringimageUrlprivate ArrayList<CTInboxMessageContent>inboxMessageContentsprivate booleanisReadprivate StringmessageIdprivate Stringorientationprivate List<String>tagsprivate Stringtitleprivate CTInboxMessageTypetypeprivate JSONObjectwzrkParams
-
Constructor Summary
Constructors Constructor Description CTInboxMessage(JSONObject jsonObject)
-
Method Summary
Modifier and Type Method Description StringgetActionUrl()StringgetBgColor()StringgetBody()StringgetCampaignId()JSONObjectgetCustomData()JSONObjectgetData()longgetDate()longgetExpires()StringgetImageUrl()ArrayList<CTInboxMessageContent>getInboxMessageContents()Returns an ArrayList of the contents of CTInboxMessage For Simple Message and Icon Message templates the size of this ArrayList is by default 1. booleanisRead()StringgetMessageId()StringgetOrientation()Returns the orientation of the media. List<String>getTags()Returns a List of tags as set on the CleverTap dashboard StringgetTitle()CTInboxMessageTypegetType()JSONObjectgetWzrkParams()Returns a JSONObject of wzrk_* parameters. static Parcelable.Creator<CTInboxMessage>getCREATOR()intdescribeContents()ArrayList<CTInboxImageData>getCarouselImagesData()Returns an ArrayList of CTInboxMessageData(url, contentDescription) of the Carousel Images ArrayList<String>getCarouselImages()Returns an ArrayList of String URLs of the Carousel Images voidwriteToParcel(Parcel dest, int flags)-
-
Constructor Detail
-
CTInboxMessage
CTInboxMessage(JSONObject jsonObject)
-
-
Method Detail
-
getActionUrl
String getActionUrl()
-
getBgColor
String getBgColor()
-
getCampaignId
String getCampaignId()
-
getCustomData
JSONObject getCustomData()
-
getData
JSONObject getData()
-
getDate
long getDate()
-
getExpires
long getExpires()
-
getImageUrl
String getImageUrl()
-
getInboxMessageContents
ArrayList<CTInboxMessageContent> getInboxMessageContents()
Returns an ArrayList of the contents of CTInboxMessage For Simple Message and Icon Message templates the size of this ArrayList is by default 1.For Carousel templates, the size of the ArrayList is the number of slides in the Carousel
-
isRead
boolean isRead()
-
getMessageId
String getMessageId()
-
getOrientation
String getOrientation()
Returns the orientation of the media.
-
getType
CTInboxMessageType getType()
-
getWzrkParams
JSONObject getWzrkParams()
Returns a JSONObject of wzrk_* parameters.
-
getCREATOR
static Parcelable.Creator<CTInboxMessage> getCREATOR()
-
describeContents
int describeContents()
-
getCarouselImagesData
ArrayList<CTInboxImageData> getCarouselImagesData()
Returns an ArrayList of CTInboxMessageData(url, contentDescription) of the Carousel Images
-
getCarouselImages
ArrayList<String> getCarouselImages()
Returns an ArrayList of String URLs of the Carousel Images
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-