Class CardMessage
java.lang.Object
com.wonderpush.sdk.inappmessaging.model.InAppMessage
com.wonderpush.sdk.inappmessaging.model.CardMessage
Encapsulates an In App Card Message.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.wonderpush.sdk.inappmessaging.model.InAppMessage
InAppMessage.BannerPosition, InAppMessage.ButtonType, InAppMessage.CloseButtonPosition, InAppMessage.InAppMessageWithImage, InAppMessage.InAppMessageWithWebView
-
Method Summary
Modifier and TypeMethodDescriptionstatic CardMessage
create
(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject data, org.json.JSONObject content) boolean
Gets the background hex color associated with this messagegetBody()
Gets the bodyText
associated with this messagegetButtonType
(List<com.wonderpush.sdk.ActionModel> actions) Gets the image displayed when the phone is in a landcscape orientationGets the image displayed when the phone is in a portrait orientationList
<com.wonderpush.sdk.ActionModel> Gets the primaryActionModel
s associated with this message.List
<com.wonderpush.sdk.ActionModel> Gets the secondaryActionModel
s associated with this messagegetTitle()
Gets the titleText
associated with this messageint
hashCode()
Methods inherited from class com.wonderpush.sdk.inappmessaging.model.InAppMessage
getData, getEntryAnimation, getExitAnimation, getMessageType, getNotificationMetadata
-
Method Details
-
create
public static CardMessage create(@NonNull com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject data, org.json.JSONObject content) throws com.wonderpush.sdk.inappmessaging.model.Campaign.InvalidJsonException - Throws:
com.wonderpush.sdk.inappmessaging.model.Campaign.InvalidJsonException
-
hashCode
public int hashCode() -
equals
-
getPortraitImageUrl
Gets the image displayed when the phone is in a portrait orientation -
getLandscapeImageUrl
Gets the image displayed when the phone is in a landcscape orientation -
getBackgroundHexColor
Gets the background hex color associated with this message -
getPrimaryActions
Gets the primaryActionModel
s associated with this message. If none is defined, the primary action is 'dismiss' -
getSecondaryActions
Gets the secondaryActionModel
s associated with this message -
getTitle
Gets the titleText
associated with this message -
getBody
Gets the bodyText
associated with this message -
getPrimaryButton
-
getSecondaryButton
-
getButtonType
- Specified by:
getButtonType
in classInAppMessage
-