com.microsoft.bot.builder.core.UpdateActivityHandler Maven / Gradle / Ivy
package com.microsoft.bot.builder.core;
import com.microsoft.bot.builder.core.Func;
import com.microsoft.bot.builder.core.TurnContext;
import com.microsoft.bot.schema.models.Activity;
import com.microsoft.bot.schema.models.ResourceResponse;
import java.util.concurrent.CompletableFuture;
///
/// A method that can participate in update activity events for the current turn.
///
/// The context object for the turn.
/// The replacement 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 update the
/// activity.
/// The activity's indicates the activity in the
/// conversation to replace.
///
///
///
///
// public delegate Task UpdateActivityHandler(ITurnContext context, Activity activity, Func> next);
@FunctionalInterface
public interface UpdateActivityHandler {
CompletableFuture handle(TurnContext context, Activity activity, Func> next);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy