CardAction 類別
- java.
lang. Object - com.
microsoft. bot. schema. CardAction
- com.
public class CardAction
可點選的動作。
建構函式摘要
| 建構函式 | Description |
|---|---|
| CardAction() |
預設空白卡片 |
| CardAction(ActionTypes withType, String withTitle) |
建立具有類型和標題的卡片 |
| CardAction(ActionTypes withType, String withTitle, String withValue) |
建立具有類型和標題的卡片 |
| CardAction(String withInput) |
使用字串值建立卡片 |
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
|
static
Card |
clone(CardAction cardAction)
執行卡片 |
| java.lang.Object |
getChannelData()
取得通道 |
| java.lang.String |
getDisplayText()
取得顯示 |
| java.lang.String |
getImage()
取得影像值。 |
| java.lang.String |
getImageAltText()
取得影像替代文字值。 |
| java.lang.String |
getText()
取得文字值。 |
| java.lang.String |
getTitle()
取得標題值。 |
|
Action |
getType()
取得類型值。 |
| java.lang.Object |
getValue()
取得值。 |
| void |
setChannelData(Object withChannelData)
設定通道 |
| void |
setDisplayText(String withDisplayText)
設定顯示 |
| void |
setImage(String withImage)
設定影像值。 |
| void |
setImageAltText(String withImageAltText)
設定影像替代文字值。 |
| void |
setText(String withText)
設定文字值。 |
| void |
setTitle(String withTitle)
設定標題值。 |
| void |
setType(ActionTypes withType)
設定類型值。 |
| void |
setValue(Object withValue)
設定值。 |
方法繼承來源 java.lang.Object
建構函式詳細資料
CardAction
public CardAction()
預設空白 CardAction。
CardAction
public CardAction(ActionTypes withType, String withTitle)
建立具有類型和標題的 CardAction。
參數:
CardAction
public CardAction(ActionTypes withType, String withTitle, String withValue)
建立具有類型和標題的 CardAction。
參數:
CardAction
public CardAction(String withInput)
使用字串值建立 CardAction。
參數:
方法詳細資料
clone
public static CardAction clone(CardAction cardAction)
執行 CardAction 的深層複本。
參數:
傳回:
getChannelData
public Object getChannelData()
取得 channelData 值。
傳回:
getDisplayText
public String getDisplayText()
取得 displayText 值。
傳回:
getImage
public String getImage()
取得影像值。
傳回:
getImageAltText
public String getImageAltText()
取得影像替代文字值。
傳回:
getText
public String getText()
取得文字值。
傳回:
getTitle
public String getTitle()
取得標題值。
傳回:
getType
public ActionTypes getType()
取得類型值。
傳回:
getValue
public Object getValue()
取得值。
傳回:
setChannelData
public void setChannelData(Object withChannelData)
設定 channelData 值。
參數:
setDisplayText
public void setDisplayText(String withDisplayText)
設定 displayText 值。
參數:
setImage
public void setImage(String withImage)
設定影像值。
參數:
setImageAltText
public void setImageAltText(String withImageAltText)
設定影像替代文字值。
參數:
setText
public void setText(String withText)
設定文字值。
參數:
setTitle
public void setTitle(String withTitle)
設定標題值。
參數:
setType
public void setType(ActionTypes withType)
設定類型值。
參數:
setValue
public void setValue(Object withValue)
設定值。
參數: