Class BannerMessage

java.lang.Object
com.wonderpush.sdk.inappmessaging.model.InAppMessage
com.wonderpush.sdk.inappmessaging.model.BannerMessage
All Implemented Interfaces:
InAppMessage.InAppMessageWithImage

public class BannerMessage extends InAppMessage implements InAppMessage.InAppMessageWithImage
Encapsulates an In App Banner Message.
  • 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getTitle

      @NonNull public Text getTitle()
      Gets the title Text associated with this message
    • getBody

      @Nullable public Text getBody()
      Gets the body Text associated with this message
    • getImageUrl

      @Nullable public String getImageUrl()
      Gets the URL of the image associated with this message
      Specified by:
      getImageUrl in interface InAppMessage.InAppMessageWithImage
    • getActions

      public List<com.wonderpush.sdk.ActionModel> getActions()
      Gets the ActionModels associated with this message
    • getBannerPosition

      public InAppMessage.BannerPosition getBannerPosition()
      Gets the InAppMessage.BannerPosition associated with this message
    • getBackgroundHexColor

      @NonNull public String getBackgroundHexColor()
      Gets the background hex color associated with this message
    • getButtonType

      public InAppMessage.ButtonType getButtonType(List<com.wonderpush.sdk.ActionModel> actions)
      Specified by:
      getButtonType in class InAppMessage