public class MessageAction
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MessageAction()
Creates an empty message action.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getAmount()
The price of the action
|
java.lang.String |
getCurrency()
The type of currency
|
java.lang.String |
getFallback()
Fallback URI for action types not supported by the SDK
|
java.lang.String |
getIconUrl()
The icon URL of the action
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
The action metadata
|
java.lang.String |
getPayload()
The action payload
|
java.lang.String |
getSize()
The size of a webview
|
java.lang.String |
getState()
The state of the action
|
java.lang.String |
getText()
The text of the action
|
java.lang.String |
getType()
The type of action
|
java.lang.String |
getUri()
The URI of the action
|
boolean |
isDefault()
Flag indicating if the message action should be the default for a given MessageItem
|
void |
setAmount(long amount)
Sets the price of the action
|
void |
setCurrency(java.lang.String currency)
Sets the type of currency
|
void |
setDefault(boolean isDefault)
Sets the default flag
|
void |
setFallback(java.lang.String uri)
Sets the fallback URI for action types not supported by the SDK
|
void |
setIconUrl(java.lang.String iconUrl)
Sets the icon URL of the action
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Sets the action metadata
|
void |
setPayload(java.lang.String payload)
Sets the action payload
|
void |
setSize(java.lang.String size)
Sets the size for a webview
|
void |
setText(java.lang.String text)
Sets the text of the action
|
void |
setType(java.lang.String type)
Sets the type of action
|
void |
setUri(java.lang.String uri)
Sets the URI of the action
|
public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String getIconUrl()
public void setIconUrl(java.lang.String iconUrl)
public java.lang.String getUri()
public void setUri(java.lang.String uri)
public java.lang.String getFallback()
public void setFallback(java.lang.String uri)
public java.lang.String getSize()
public void setSize(java.lang.String size)
public long getAmount()
public void setAmount(long amount)
public java.lang.String getState()
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getPayload()
public void setPayload(java.lang.String payload)
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
public void setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
public java.lang.String getCurrency()
public void setCurrency(java.lang.String currency)
public boolean isDefault()
public void setDefault(boolean isDefault)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object