EventFactory Clase

  • java.lang.Object
    • com.microsoft.bot.builder.EventFactory

public final class EventFactory

Contiene métodos de utilidad para crear varios tipos de eventos.

Resumen del método

Modificador y tipo Método y descripción
static Activity createHandoffInitiation(TurnContext turnContext, Object handoffContext)

Crear evento de inicio de entrega.

static Activity createHandoffInitiation(TurnContext turnContext, Object handoffContext, Transcript transcript)

Crear evento de inicio de entrega.

static Activity createHandoffStatus(ConversationAccount conversation, String state)

Crear evento de estado de entrega.

static Activity createHandoffStatus(ConversationAccount conversation, String state, String message)

Crear evento de estado de entrega.

Métodos heredados de 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

Detalles del método

createHandoffInitiation

public static Activity createHandoffInitiation(TurnContext turnContext, Object handoffContext)

Crear evento de inicio de entrega.

Parámetros:

turnContext - contexto de turno.
handoffContext - contexto específico del centro de agentes.

Devoluciones:

evento handoff.

createHandoffInitiation

public static Activity createHandoffInitiation(TurnContext turnContext, Object handoffContext, Transcript transcript)

Crear evento de inicio de entrega.

Parámetros:

turnContext - contexto de turno.
handoffContext - contexto específico del centro de agentes.
transcript - transcripción de la conversación.

Devoluciones:

evento handoff.

createHandoffStatus

public static Activity createHandoffStatus(ConversationAccount conversation, String state)

Crear evento de estado de entrega.

Parámetros:

conversation - Conversación que se entrega.
state - Estado, los valores posibles son: "aceptado", "failed", "completed".

Devoluciones:

evento handoff.

createHandoffStatus

public static Activity createHandoffStatus(ConversationAccount conversation, String state, String message)

Crear evento de estado de entrega.

Parámetros:

conversation - Conversación que se entrega.
state - Estado, los valores posibles son: "aceptado", "failed", "completed".
message - Mensaje adicional para la entrega con error.

Devoluciones:

evento handoff.

Se aplica a