import 'package:bytedesk_kefu/model/message.dart'; import 'package:event_bus/event_bus.dart'; EventBus bytedeskEventBus = new EventBus(); class ReceiveMessageEventBus { Message message; ReceiveMessageEventBus(this.message); } class ReceiveMessageReceiptEventBus { String mid; String status; ReceiveMessageReceiptEventBus(this.mid, this.status); } class ReceiveMessagePreviewEventBus { String content; ReceiveMessagePreviewEventBus(this.content); } class ReceiveMessageRecallEventBus { String mid; ReceiveMessageRecallEventBus(this.mid); } class ConnectionEventBus { String content; ConnectionEventBus(this.content); } class DeleteMessageEventBus { String mid; DeleteMessageEventBus(this.mid); } // token过期 class InvalidTokenEventBus { InvalidTokenEventBus(); } class QueryAnswerEventBus { String aid; String question; String answer; QueryAnswerEventBus(this.aid, this.question, this.answer); } class RequestAgentThreadEventBus { RequestAgentThreadEventBus(); }