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 CardMessagecreate(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject data, org.json.JSONObject content) booleanGets the background hex color associated with this messagegetBody()Gets the bodyTextassociated 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 primaryActionModels associated with this message.List<com.wonderpush.sdk.ActionModel>Gets the secondaryActionModels associated with this messagegetTitle()Gets the titleTextassociated with this messageinthashCode()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 primaryActionModels associated with this message. If none is defined, the primary action is 'dismiss' -
getSecondaryActions
Gets the secondaryActionModels associated with this message -
getTitle
Gets the titleTextassociated with this message -
getBody
Gets the bodyTextassociated with this message -
getPrimaryButton
-
getSecondaryButton
-
getButtonType
- Specified by:
getButtonTypein classInAppMessage
-