Attachment 類別

  • java.lang.Object
    • com.microsoft.bot.schema.Attachment

public class Attachment

活動內的附件。

建構函式摘要

建構函式 Description
Attachment()

方法摘要

修飾詞與類型 方法與描述
static Attachment clone(Attachment attachment)

執行附件的深層複本。

static java.util.List<Attachment> cloneList(List<Attachment> attachments)

複製附件清單。

java.lang.Object getContent()

取得內容值。

java.lang.String getContentType()

取得 [類型] 值內容。

java.lang.String getContentUrl()

取得內容Url 值。

java.lang.String getName()

取得名稱值。

java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getProperties()

溢位屬性。

java.lang.String getThumbnailUrl()

取得縮圖Url 值。

void setContent(Object withContent)

設定內容值。

void setContentType(String withContentType)

設定 [類型] 值內容。

void setContentUrl(String withContentUrl)

設定內容URL 值。

void setName(String withName)

設定名稱值。

void setProperties(String key, JsonNode value)

設定溢位屬性。

void setThumbnailUrl(String withThumbnailUrl)

設定縮圖URL 值。

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

建構函式詳細資料

Attachment

public Attachment()

方法詳細資料

clone

public static Attachment clone(Attachment attachment)

執行附件的深層複本。

參數:

attachment - 要複製的附件。

傳回:

附件的複製版本。

cloneList

public static List cloneList(List attachments)

複製附件清單。

參數:

attachments - 要複製的附件清單。

傳回:

複製附件的新清單。

getContent

public Object getContent()

取得內容值。

傳回:

內容值

getContentType

public String getContentType()

取得 contentType 值。

傳回:

contentType 值

getContentUrl

public String getContentUrl()

取得 contentUrl 值。

傳回:

contentUrl 值

getName

public String getName()

取得名稱值。

傳回:

名稱值

getProperties

public Map getProperties()

溢位屬性。 您可以在這裏存取未模型化為 物件中第一類屬性的屬性。 注意:屬性值可以是巢狀的。

傳回:

屬性的 Key-Value 對應

getThumbnailUrl

public String getThumbnailUrl()

取得 thumbnailUrl 值。

傳回:

thumbnailUrl 值

setContent

public void setContent(Object withContent)

設定內容值。

參數:

withContent - 要設定的內容值

setContentType

public void setContentType(String withContentType)

設定 contentType 值。

參數:

withContentType - 要設定的 contentType 值

setContentUrl

public void setContentUrl(String withContentUrl)

設定 contentUrl 值。

參數:

withContentUrl - 要設定的 contentUrl 值

setName

public void setName(String withName)

設定名稱值。

參數:

withName - 要設定的名稱值

setProperties

public void setProperties(String key, JsonNode value)

設定溢位屬性。

參數:

key - 屬性的索引鍵
value - 值的 JsonNode (可以巢狀化)

setThumbnailUrl

public void setThumbnailUrl(String withThumbnailUrl)

設定 thumbnailUrl 值。

參數:

withThumbnailUrl - 要設定的 thumbnailUrl 值

適用於