Class CardAction

    • Constructor Detail

      • CardAction

        public CardAction()
    • Method Detail

      • payload

        public CardAction payload​(String payload)
        Text to be returned as the payload from a ButtonResponse when a button is clicked. The payload and text are a combination which will have to be unique across each card and carousel in order to determine which button was clicked in that card or carousel.
      • getPayload

        public String getPayload()
      • setPayload

        public void setPayload​(String payload)
      • text

        public CardAction text​(String text)
        The response text from the button click.
      • getText

        public String getText()
      • setText

        public void setText​(String text)
      • url

        public CardAction url​(String url)
        A URL of a web page to direct the user to.
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object