Class CardAction

java.lang.Object
com.mypurecloud.sdk.v2.model.CardAction
All Implemented Interfaces:
Serializable

public class CardAction extends Object implements Serializable
A card action that a user can take.
See Also:
  • Constructor Details

    • CardAction

      public CardAction()
    • CardAction

      public CardAction(Boolean initWithEmptyList)
  • Method Details

    • type

      public CardAction type(CardAction.TypeEnum type)
      Describes the type of action.
    • getType

      public CardAction.TypeEnum getType()
    • setType

      public void setType(CardAction.TypeEnum type)
    • text

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

      public String getText()
    • setText

      public void setText(String text)
    • payload

      public CardAction payload(String payload)
      Content of the textback payload after clicking a button.
    • getPayload

      public String getPayload()
    • setPayload

      public void setPayload(String payload)
    • url

      public CardAction url(String url)
      The location of the image file associated with action.
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • isSelected

      public CardAction isSelected(Boolean isSelected)
      Indicates if the card option is selected by end customer.
    • getIsSelected

      public Boolean getIsSelected()
    • setIsSelected

      public void setIsSelected(Boolean isSelected)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object