Search in sources :

Example 1 with ImTypeMsgEvent

use of com.rideread.rideread.common.event.ImTypeMsgEvent in project ride-read-android by Ride-Read.

the class MessageHandler method sendEvent.

/**
     * 因为没有 db,所以暂时先把消息广播出去,由接收方自己处理
     * 稍后应该加入 db
     * @param message
     * @param conversation
     */
private void sendEvent(AVIMTypedMessage message, AVIMConversation conversation) {
    ImTypeMsgEvent event = new ImTypeMsgEvent();
    event.message = message;
    event.conversation = conversation;
    EventBus.getDefault().post(event);
}
Also used : ImTypeMsgEvent(com.rideread.rideread.common.event.ImTypeMsgEvent)

Aggregations

ImTypeMsgEvent (com.rideread.rideread.common.event.ImTypeMsgEvent)1