ConversationReference 類別

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

public class ConversationReference

與交談中特定點相關的物件。

建構函式摘要

建構函式 Description
ConversationReference()

方法摘要

修飾詞與類型 方法與描述
static ConversationReference clone(ConversationReference conversationReference)

執行對話參考的深層複本。

java.lang.String getActivityId()

(選擇性)要參考的活動標識碼。

ChannelAccount getBot()

參與此交談的 Bot。

java.lang.String getChannelId()

取得通道標識碼值。

Activity getContinuationActivity()

從交談參考建立 Activity,因為它會張貼至 Bot。

ConversationAccount getConversation()

交談參考。

java.lang.String getLocale()

取得地區設定值。

java.lang.String getServiceUrl()

執行有關參考交談之作業的服務端點。

ChannelAccount getUser()

(選擇性)參與此交談的使用者。

void setActivityId(String withActivityId)

(選擇性)要參考的活動標識碼。

void setBot(ChannelAccount withBot)

參與此交談的 Bot。

void setChannelId(String withChannelId)

設定通道標識碼值。

void setConversation(ConversationAccount withConversation)

交談參考。

void setLocale(String withLocale)

設定地區設定值。

void setServiceUrl(String withServiceUrl)

執行有關參考交談之作業的服務端點。

void setUser(ChannelAccount withUser)

(選擇性)參與此交談的使用者。

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

建構函式詳細資料

ConversationReference

public ConversationReference()

方法詳細資料

clone

public static ConversationReference clone(ConversationReference conversationReference)

執行 ConversationReference 的深層複本。

參數:

conversationReference - 要複製的 ConversationReference。

傳回:

ConversationReference 的複製品。

getActivityId

public String getActivityId()

(選擇性)要參考的活動標識碼。

傳回:

activityId 值

getBot

public ChannelAccount getBot()

參與此交談的 Bot。

傳回:

Bot 值

getChannelId

public String getChannelId()

取得 channelId 值。

傳回:

channelId 值

getContinuationActivity

public Activity getContinuationActivity()

從交談參考建立 Activity,因為它會張貼至 Bot。

傳回:

接續活動。

getConversation

public ConversationAccount getConversation()

交談參考。

傳回:

交談值

getLocale

public String getLocale()

取得地區設定值。

傳回:

地區設定值

getServiceUrl

public String getServiceUrl()

執行有關參考交談之作業的服務端點。

傳回:

serviceUrl 值

getUser

public ChannelAccount getUser()

(選擇性)參與此交談的使用者。

傳回:

用戶值

setActivityId

public void setActivityId(String withActivityId)

(選擇性)要參考的活動標識碼。

參數:

withActivityId - 要設定的 activityId 值

setBot

public void setBot(ChannelAccount withBot)

參與此交談的 Bot。

參數:

withBot - 要設定的 Bot 值

setChannelId

public void setChannelId(String withChannelId)

設定 channelId 值。

參數:

withChannelId - 要設定的 channelId 值

setConversation

public void setConversation(ConversationAccount withConversation)

交談參考。

參數:

withConversation - 要設定的交談值

setLocale

public void setLocale(String withLocale)

設定地區設定值。

參數:

withLocale - 要設定的地區設定值

setServiceUrl

public void setServiceUrl(String withServiceUrl)

執行有關參考交談之作業的服務端點。

參數:

withServiceUrl - 要設定的 serviceUrl 值

setUser

public void setUser(ChannelAccount withUser)

(選擇性)參與此交談的使用者。

參數:

withUser - 要設定的用戶值

適用於