Class ModalMessage
java.lang.Object
com.wonderpush.sdk.inappmessaging.model.InAppMessage
com.wonderpush.sdk.inappmessaging.model.ModalMessage
- All Implemented Interfaces:
InAppMessage.InAppMessageWithImage
Encapsulates an In App Modal 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 ModalMessagecreate(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject payloadJson, org.json.JSONObject modalJson) booleanList<com.wonderpush.sdk.ActionModel>Gets theActionModels associated with this messageGets the background hex color associated with this messagegetBody()Gets the bodyTextassociated with this messagegetButtonType(List<com.wonderpush.sdk.ActionModel> actions) Gets the image 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 ModalMessage create(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject payloadJson, org.json.JSONObject modalJson) throws com.wonderpush.sdk.inappmessaging.model.Campaign.InvalidJsonException - Throws:
com.wonderpush.sdk.inappmessaging.model.Campaign.InvalidJsonException
-
hashCode
public int hashCode() -
equals
-
getTitle
Gets the titleTextassociated with this message -
getBody
Gets the bodyTextassociated with this message -
getImageUrl
Gets the image associated with this message- Specified by:
getImageUrlin interfaceInAppMessage.InAppMessageWithImage
-
getBackgroundHexColor
Gets the background hex color associated with this message -
getActions
Gets theActionModels associated with this message -
getButton
-
getCloseButtonPosition
-
getButtonType
- Specified by:
getButtonTypein classInAppMessage
-