SkillConversationIdFactoryBase 類別

  • java.lang.Object
    • com.microsoft.bot.builder.skills.SkillConversationIdFactoryBase

public abstract class SkillConversationIdFactoryBase

定義處理站的介面,用來建立技能交談的唯一交談標識碼。

建構函式摘要

建構函式 Description
SkillConversationIdFactoryBase()

方法摘要

修飾詞與類型 方法與描述
java.util.concurrent.CompletableFuture<java.lang.String> createSkillConversationId(SkillConversationIdFactoryOptions options)

建立技能交談的交談標識碼。

java.util.concurrent.CompletableFuture<java.lang.String> createSkillConversationId(ConversationReference conversationReference)

建立技能交談超級的交談標識碼。

abstract java.util.concurrent.CompletableFuture<java.lang.Void> deleteConversationReference(String skillConversationId)

刪除 ConversationReference

java.util.concurrent.CompletableFuture<ConversationReference> getConversationReference(String skillConversationId)

取得使用 {@link CreateSkillConversationId(Microsoft#getBot()#getSchema()#getConversatio Reference(),System#getThreading()#get取消Token()} 建立的 ConversationReference對話標識符。

java.util.concurrent.CompletableFuture<SkillConversationReference> getSkillConversationReference(String skillConversationId)

取得技能交談標識符的 {@link 建立技能交談標識符期間所使用的 SkillConversationReference,System#getT reading()#get取消Token()} 。

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

建構函式詳細資料

SkillConversationIdFactoryBase

public SkillConversationIdFactoryBase()

方法詳細資料

createSkillConversationId

public CompletableFuture createSkillConversationId(SkillConversationIdFactoryOptions options)

建立技能交談的交談標識碼。

參數:

options - SkillConversationIdFactoryOptions 實例,其中包含用於建立交談標識符的參數。

傳回:

用來與技能通訊的唯一交談標識符。 應該可以在要求 URL 上使用傳回的 String,而且不應該包含特殊字元。

createSkillConversationId

public CompletableFuture createSkillConversationId(ConversationReference conversationReference)

建立技能交談超級的交談標識碼。 在呼叫者的 ConversationReference 上。

參數:

conversationReference - 技能的呼叫端 ConversationReference

傳回:

用來與技能通訊的唯一交談標識符。 應該可以在要求 URL 上使用傳回的 String,而且不應該包含特殊字元。

deleteConversationReference

public abstract CompletableFuture deleteConversationReference(String skillConversationId)

刪除 ConversationReference

參數:

skillConversationId - 使用 {@link CreateSkillConversationId 建立的技能 conversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken()}} 。

傳回:

表示異步作的 CompletableFuture

getConversationReference

public CompletableFuture getConversationReference(String skillConversationId)

針對 skillConversationId,取得使用 {@link CreateSkillConversationId(Microsoft#getBot()#getSchema()#getConversatio Reference(),System#getThreading()#getCancellationToken())} 建立的 ConversationReference

參數:

skillConversationId - 使用 {@link CreateSkillConversationId(Microsoft#getBot()#getSchema()#getConversatio Reference(),System#getThreading()#getCancellationToken()} 建立的技能 conversationId。

傳回:

skillConversationId 的呼叫端 ConversationReference。 如果找不到,則為 null。

getSkillConversationReference

public CompletableFuture getSkillConversationReference(String skillConversationId)

取得 skillConversationId 的 {@link CreateSkillConversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken()} 期間所使用的 SkillConversationReference

參數:

skillConversationId - 使用 {@link CreateSkillConversationId 建立的技能 conversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken()}} 。

傳回:

呼叫端的 skillConversationId 的 ConversationReference,具有原始的Audience。 如果找不到,則為 Null。

適用於