Class SwrveEmbeddedMessage

    • Constructor Detail

      • SwrveEmbeddedMessage

        public SwrveEmbeddedMessage​(SwrveEmbeddedCampaign campaign,
                                    org.json.JSONObject messageData)
                             throws org.json.JSONException
        Throws:
        org.json.JSONException
    • Method Detail

      • getId

        public int getId()
        Specified by:
        getId in interface SwrveBaseMessage
        Returns:
        the embedded message id.
      • setId

        protected void setId​(int id)
      • setPriority

        public void setPriority​(int priority)
      • supportsOrientation

        public boolean supportsOrientation​(com.swrve.sdk.messaging.SwrveOrientation orientation)
        Specified by:
        supportsOrientation in interface SwrveBaseMessage
      • getButtons

        public java.util.List<java.lang.String> getButtons()
        Returns:
        the names of the expected buttons
      • setButtons

        protected void setButtons​(java.util.List<java.lang.String> buttonNames)
      • getData

        public java.lang.String getData()
        Returns:
        the embedded campaign data
      • setData

        protected void setData​(java.lang.String data)
      • setType

        protected void setType​(java.lang.String type)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface SwrveBaseMessage
        Returns:
        the embedded campaign name