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 BannerMessagecreate(com.wonderpush.sdk.NotificationMetadata notificationMetadata, org.json.JSONObject payloadJson, org.json.JSONObject bannerJson) booleanList<com.wonderpush.sdk.ActionModel>Gets theActionModels associated with this messageGets the background hex color associated with this messageGets theInAppMessage.BannerPositionassociated with this messagegetBody()Gets the bodyTextassociated with this messagegetButtonType(List<com.wonderpush.sdk.ActionModel> actions) Gets the URL of 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 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 titleTextassociated with this message -
getBody
Gets the bodyTextassociated with this message -
getImageUrl
Gets the URL of the image associated with this message- Specified by:
getImageUrlin interfaceInAppMessage.InAppMessageWithImage
-
getActions
Gets theActionModels associated with this message -
getBannerPosition
Gets theInAppMessage.BannerPositionassociated with this message -
getBackgroundHexColor
Gets the background hex color associated with this message -
getButtonType
- Specified by:
getButtonTypein classInAppMessage
-