MessageBloc constructor

MessageBloc()

Implementation

MessageBloc() : super(InitialMessageState()) {
  on<ReceiveMessageEvent>(_mapRefreshCourseToState);
  on<UploadImageEvent>(_mapUploadImageToState);
  on<UploadImageBytesEvent>(_mapUploadImageBytesToState);
  on<UploadVideoEvent>(_mapUploadVideoToState);
  on<UploadVideoBytesEvent>(_mapUploadVideoBytesToState);
  on<SendMessageRestEvent>(_mapSendMessageRestToState);
  // on<SendZhipuAIMessageRestEvent>(_mapSendZhipuAIMessageRestToState);
  // on<LoadHistoryMessageEvent>(_mapLoadHistoryMessageToState);
  // on<LoadUnreadMessagesEvent>(_mapLoadUnreadMessageToState);
  // on<LoadUnreadVisitorMessagesEvent>(_mapLoadUnreadVisitorMessageToState);
  // on<LoadUnreadAgentMessagesEvent>(_mapLoadUnreadAgentMessageToState);
  // on<LoadTopicMessageEvent>(_mapLoadTopicMessageToState);
}