RestConversations Class

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

Implements

public class RestConversations
implements Conversations

An instance of this class provides access to all the operations defined in Conversations.

Method Summary

Modifier and Type Method and Description
java.util.concurrent.CompletableFuture<ConversationResourceResponse> createConversation(ConversationParameters parameters)

Implementation of createConversation.

java.util.concurrent.CompletableFuture<java.lang.Void> deleteActivity(String conversationId, String activityId)

Implementation of deleteActivity.

java.util.concurrent.CompletableFuture<java.lang.Void> deleteConversationMember(String conversationId, String memberId)

Implementation of deleteConversationMember.

java.util.concurrent.CompletableFuture<java.util.List<ChannelAccount>> getActivityMembers(String conversationId, String activityId)

Implementation of getActivityMembers.

java.util.concurrent.CompletableFuture<ChannelAccount> getConversationMember(String userId, String conversationId)

Implementation of getConversationMember.

java.util.concurrent.CompletableFuture<java.util.List<ChannelAccount>> getConversationMembers(String conversationId)

Implementation of getConversationMembers.

java.util.concurrent.CompletableFuture<PagedMembersResult> getConversationPagedMembers(String conversationId)

Implementation of getConversationPagedMembers.

java.util.concurrent.CompletableFuture<PagedMembersResult> getConversationPagedMembers(String conversationId, String continuationToken)

Implementation of getConversationPagedMembers.

java.util.concurrent.CompletableFuture<ConversationsResult> getConversations()

Implementation of getConversations.

java.util.concurrent.CompletableFuture<ConversationsResult> getConversations(String continuationToken)

Implementation of getConversations.

java.util.concurrent.CompletableFuture<ResourceResponse> replyToActivity(String conversationId, String activityId, Activity activity)

Implementation of replyToActivity.

java.util.concurrent.CompletableFuture<ResourceResponse> sendConversationHistory(String conversationId, Transcript history)

Implementation of sendConversationHistory.

java.util.concurrent.CompletableFuture<ResourceResponse> sendToConversation(String conversationId, Activity activity)

Implementation of sendToConversation.

java.util.concurrent.CompletableFuture<ResourceResponse> updateActivity(String conversationId, String activityId, Activity activity)

Implementation of updateActivity.

java.util.concurrent.CompletableFuture<ResourceResponse> uploadAttachment(String conversationId, AttachmentData attachmentUpload)

Implementation of uploadAttachment.

Methods inherited from 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

Method Details

createConversation

public CompletableFuture createConversation(ConversationParameters parameters)

Implementation of createConversation.

Parameters:

parameters

deleteActivity

public CompletableFuture deleteActivity(String conversationId, String activityId)

Implementation of deleteActivity.

Parameters:

conversationId
activityId

deleteConversationMember

public CompletableFuture deleteConversationMember(String conversationId, String memberId)

Implementation of deleteConversationMember.

Parameters:

conversationId
memberId

getActivityMembers

public CompletableFuture> getActivityMembers(String conversationId, String activityId)

Implementation of getActivityMembers.

Parameters:

conversationId
activityId

getConversationMember

public CompletableFuture getConversationMember(String userId, String conversationId)

Implementation of getConversationMember.

Parameters:

userId
conversationId

getConversationMembers

public CompletableFuture> getConversationMembers(String conversationId)

Implementation of getConversationMembers.

Parameters:

conversationId

getConversationPagedMembers

public CompletableFuture getConversationPagedMembers(String conversationId)

Implementation of getConversationPagedMembers.

Parameters:

conversationId

getConversationPagedMembers

public CompletableFuture getConversationPagedMembers(String conversationId, String continuationToken)

Implementation of getConversationPagedMembers.

Parameters:

conversationId - Conversation ID
continuationToken - The continuationToken from a previous call.

Returns:

the PagedMembersResult object if successful.

getConversations

public CompletableFuture getConversations()

Implementation of getConversations.

getConversations

public CompletableFuture getConversations(String continuationToken)

Implementation of getConversations.

Parameters:

continuationToken

replyToActivity

public CompletableFuture replyToActivity(String conversationId, String activityId, Activity activity)

Implementation of replyToActivity.

Parameters:

conversationId
activityId
activity

sendConversationHistory

public CompletableFuture sendConversationHistory(String conversationId, Transcript history)

Implementation of sendConversationHistory.

Parameters:

conversationId
history

sendToConversation

public CompletableFuture sendToConversation(String conversationId, Activity activity)

Implementation of sendToConversation.

Parameters:

conversationId
activity

updateActivity

public CompletableFuture updateActivity(String conversationId, String activityId, Activity activity)

Implementation of updateActivity.

Parameters:

conversationId
activityId
activity

uploadAttachment

public CompletableFuture uploadAttachment(String conversationId, AttachmentData attachmentUpload)

Implementation of uploadAttachment.

Parameters:

conversationId
attachmentUpload

Applies to