Class BannerMessage
java.lang.Object
com.wonderpush.sdk.inappmessaging.model.InAppMessage
com.wonderpush.sdk.inappmessaging.model.BannerMessage
- All Implemented Interfaces:
InAppMessage.InAppMessageWithImage
Encapsulates an In App Banner 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 BannerMessage
create
(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject payloadJson, org.json.JSONObject bannerJson) boolean
List
<com.wonderpush.sdk.ActionModel> Gets theActionModel
s associated with this messageGets the background hex color associated with this messageGets theInAppMessage.BannerPosition
associated with this messagegetBody()
Gets the bodyText
associated with this messagegetButtonType
(List<com.wonderpush.sdk.ActionModel> actions) Gets the URL of 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 BannerMessage create(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject payloadJson, org.json.JSONObject bannerJson) 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 URL of the image associated with this message- Specified by:
getImageUrl
in interfaceInAppMessage.InAppMessageWithImage
-
getActions
Gets theActionModel
s associated with this message -
getBannerPosition
Gets theInAppMessage.BannerPosition
associated with this message -
getBackgroundHexColor
Gets the background hex color associated with this message -
getButtonType
- Specified by:
getButtonType
in classInAppMessage
-