FileConsentCard 類別
- java.
lang. Object - com.
microsoft. bot. schema. teams. FileConsentCard
- com.
public class FileConsentCard
檔案同意卡片附件。
欄位摘要
| 修飾詞與類型 | 欄位與描述 |
|---|---|
| static final java.lang.String |
CONTENT_TYPE
要用於 type 屬性的內容類型。 |
建構函式摘要
| 建構函式 | Description | |
|---|---|---|
| FileConsentCard() | ||
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
| java.lang.Object |
getAcceptContext()
如果使用者同意上傳,取得傳回 Bot 的內容。 |
| java.lang.Object |
getDeclineContext()
如果用戶拒絕,取得傳回給 Bot 的內容。 |
| java.lang.String |
getDescription()
取得檔案描述。 |
| long |
getSizeInBytes()
取得要以位元組為單位上傳的檔案大小。 |
| void |
setAcceptContext(Object withAcceptContext)
如果使用者同意上傳,設定傳回 Bot 的內容。 |
| void |
setDeclineContext(Object withDeclineContext)
設定如果使用者拒絕,則會將內容傳回給 Bot。 |
| void |
setDescription(String withDescription)
設定檔案描述。 |
| void |
setSizeInBytes(long withSizeInBytes)
設定要以位元組為單位上傳的檔案大小。 |
方法繼承來源 java.lang.Object
欄位詳細資料
CONTENT_TYPE
public static final String CONTENT_TYPE
要用於 type 屬性的內容類型。
建構函式詳細資料
FileConsentCard
public FileConsentCard()
方法詳細資料
getAcceptContext
public Object getAcceptContext()
如果使用者同意上傳,取得傳回 Bot 的內容。 這是自由流程架構,會傳回 [活動值] 欄位中。
傳回:
getDeclineContext
public Object getDeclineContext()
如果用戶拒絕,取得傳回給 Bot 的內容。 這是自由流程架構,會傳回 [活動值] 欄位中。
傳回:
getDescription
public String getDescription()
取得檔案描述。
傳回:
getSizeInBytes
public long getSizeInBytes()
取得要以位元組為單位上傳的檔案大小。
傳回:
setAcceptContext
public void setAcceptContext(Object withAcceptContext)
如果使用者同意上傳,設定傳回 Bot 的內容。 這是自由流程架構,會傳回 [活動值] 欄位中。
參數:
setDeclineContext
public void setDeclineContext(Object withDeclineContext)
設定如果使用者拒絕,則會將內容傳回給 Bot。 這是自由流程架構,會傳回 [活動值] 欄位中。
參數:
setDescription
public void setDescription(String withDescription)
設定檔案描述。
參數:
setSizeInBytes
public void setSizeInBytes(long withSizeInBytes)
設定要以位元組為單位上傳的檔案大小。
參數: