Package com.avaya.core
Class MessageAction
- java.lang.Object
-
- com.avaya.core.MessageAction
-
- All Implemented Interfaces:
java.io.Serializable
public class MessageAction extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageAction()Creates an empty message action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetAmount()The price of the actionjava.lang.StringgetCurrency()The type of currencyjava.lang.StringgetFallback()Fallback URI for action types not supported by the SDKjava.lang.StringgetIconUrl()The icon URL of the actionjava.util.Map<java.lang.String,java.lang.Object>getMetadata()The action metadatajava.lang.StringgetPayload()The action payloadjava.lang.StringgetSize()The size of a webviewjava.lang.StringgetState()The state of the actionjava.lang.StringgetText()The text of the actionjava.lang.StringgetType()The type of actionjava.lang.StringgetUri()The URI of the actionbooleanisDefault()Flag indicating if the message action should be the default for a given MessageItemvoidsetAmount(long amount)Sets the price of the actionvoidsetCurrency(java.lang.String currency)Sets the type of currencyvoidsetDefault(boolean isDefault)Sets the default flagvoidsetFallback(java.lang.String uri)Sets the fallback URI for action types not supported by the SDKvoidsetIconUrl(java.lang.String iconUrl)Sets the icon URL of the actionvoidsetMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)Sets the action metadatavoidsetPayload(java.lang.String payload)Sets the action payloadvoidsetSize(java.lang.String size)Sets the size for a webviewvoidsetText(java.lang.String text)Sets the text of the actionvoidsetType(java.lang.String type)Sets the type of actionvoidsetUri(java.lang.String uri)Sets the URI of the action
-
-
-
Method Detail
-
getText
public java.lang.String getText()
The text of the action- Returns:
- The text
-
setText
public void setText(java.lang.String text)
Sets the text of the action
-
getIconUrl
public java.lang.String getIconUrl()
The icon URL of the action- Returns:
- The icon URL
-
setIconUrl
public void setIconUrl(java.lang.String iconUrl)
Sets the icon URL of the action
-
getUri
public java.lang.String getUri()
The URI of the action- Returns:
- The URI
-
setUri
public void setUri(java.lang.String uri)
Sets the URI of the action
-
getFallback
public java.lang.String getFallback()
Fallback URI for action types not supported by the SDK- Returns:
- The fallback Uri
-
setFallback
public void setFallback(java.lang.String uri)
Sets the fallback URI for action types not supported by the SDK
-
getSize
public java.lang.String getSize()
The size of a webview- Returns:
- The size
-
setSize
public void setSize(java.lang.String size)
Sets the size for a webview
-
getAmount
public long getAmount()
The price of the action- Returns:
- The price (in cents)
-
setAmount
public void setAmount(long amount)
Sets the price of the action
-
getState
public java.lang.String getState()
The state of the action- Returns:
- The state of the action
-
getType
public java.lang.String getType()
The type of action- Returns:
- The type
-
setType
public void setType(java.lang.String type)
Sets the type of action
-
getPayload
public java.lang.String getPayload()
The action payload- Returns:
- The payload
-
setPayload
public void setPayload(java.lang.String payload)
Sets the action payload
-
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
The action metadata- Returns:
- The metadata
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Sets the action metadata
-
getCurrency
public java.lang.String getCurrency()
The type of currency- Returns:
- The currency type
-
setCurrency
public void setCurrency(java.lang.String currency)
Sets the type of currency
-
isDefault
public boolean isDefault()
Flag indicating if the message action should be the default for a given MessageItem- Returns:
- True or false
-
setDefault
public void setDefault(boolean isDefault)
Sets the default flag
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-