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 ModalMessage
create
(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject payloadJson, org.json.JSONObject modalJson) boolean
List
<com.wonderpush.sdk.ActionModel> Gets theActionModel
s associated with this messageGets the background hex color associated with this messagegetBody()
Gets the bodyText
associated with this messagegetButtonType
(List<com.wonderpush.sdk.ActionModel> actions) Gets the image 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 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 titleText
associated with this message -
getBody
Gets the bodyText
associated with this message -
getImageUrl
Gets the image associated with this message- Specified by:
getImageUrl
in interfaceInAppMessage.InAppMessageWithImage
-
getBackgroundHexColor
Gets the background hex color associated with this message -
getActions
Gets theActionModel
s associated with this message -
getButton
-
getCloseButtonPosition
-
getButtonType
- Specified by:
getButtonType
in classInAppMessage
-