All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.bot.builder.core.DeleteActivityHandler Maven / Gradle / Ivy

package com.microsoft.bot.builder.core;

import com.microsoft.bot.builder.core.TurnContext;
import com.microsoft.bot.schema.models.ConversationReference;

import java.util.concurrent.CompletableFuture;

/// 
/// A method that can participate in delete activity events for the current turn.
/// 
/// The context object for the turn.
/// The conversation containing the activity.
/// The delegate to call to continue event processing.
/// A task that represents the work queued to execute.
/// A handler calls the  delegate to pass control to
/// the next registered handler. If a handler doesn’t call the next delegate,
/// the adapter does not call any of the subsequent handlers and does not delete the
///activity.
/// The conversation reference's 
/// indicates the activity in the conversation to replace.
/// 
/// 
/// 
/// 
@FunctionalInterface
public interface DeleteActivityHandler {
    CompletableFuture handle(TurnContext context, ConversationReference reference, Func next);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy