FileConsentCard 類別

  • java.lang.Object
    • com.microsoft.bot.schema.teams.FileConsentCard

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

欄位詳細資料

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 的內容。 這是自由流程架構,會傳回 [活動值] 欄位中。

參數:

withAcceptContext - 新內容。

setDeclineContext

public void setDeclineContext(Object withDeclineContext)

設定如果使用者拒絕,則會將內容傳回給 Bot。 這是自由流程架構,會傳回 [活動值] 欄位中。

參數:

withDeclineContext - 拒絕內容。

setDescription

public void setDescription(String withDescription)

設定檔案描述。

參數:

withDescription - 新的檔案描述。

setSizeInBytes

public void setSizeInBytes(long withSizeInBytes)

設定要以位元組為單位上傳的檔案大小。

參數:

withSizeInBytes - 以位元組為單位的新大小。

適用於