RestAttachments 類別

  • java.lang.Object
    • com.microsoft.bot.connector.rest.RestAttachments

實作

public class RestAttachments
implements Attachments

這個類別的實例可讓您存取 Attachments 中定義的所有作業。

方法摘要

修飾詞與類型 方法與描述
java.util.concurrent.CompletableFuture<java.io.InputStream> getAttachment(String attachmentId, String viewId)

取得附件。

java.util.concurrent.CompletableFuture<AttachmentInfo> getAttachmentInfo(String attachmentId)

取得附件資訊。

java.lang.String getAttachmentUri(String attachmentId, String viewId)

取得附件檢視的 URI。

方法繼承來源 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

方法詳細資料

getAttachment

public CompletableFuture getAttachment(String attachmentId, String viewId)

GetAttachment。 取得具名檢視做為二進位內容。

參數:

attachmentId - 附件標識碼
viewId - 檢視 attachmentInfo 中的標識符

傳回:

可觀察至 InputStream 物件

getAttachmentInfo

public CompletableFuture getAttachmentInfo(String attachmentId)

GetAttachmentInfo。 取得描述附件檢視的 AttachmentInfo 結構。

參數:

attachmentId - 附件標識碼

傳回:

可觀察的 AttachmentInfo 物件

getAttachmentUri

public String getAttachmentUri(String attachmentId, String viewId)

取得附件檢視的 URI。

參數:

attachmentId - 附件的標識碼。
viewId - 預設值為 「original」。。

傳回:

附件的 URI。

適用於