bot-handoff
Version:
Bot hand off module for the Microsoft Bot Framework. It allows you to transfer a customer from talking to a bot to talking to a human.
16 lines (12 loc) • 537 B
text/typescript
import { IAddress } from 'botbuilder';
import { EventMessageType } from './EventMessageType';
import { HandoffEventMessage } from './HandoffEventMessage';
export class ErrorEventMessage extends HandoffEventMessage {
public readonly sourceEvent: HandoffEventMessage;
public readonly error: {};
constructor(sourceEvent: HandoffEventMessage, error: {}) {
super(EventMessageType.Error, sourceEvent.customerAddress, sourceEvent.agentAddress);
this.sourceEvent = sourceEvent;
this.error = error;
}
}