lizhanwei
2020-02-18 87ab0bd072bd42c09a649759090942781ab53fcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.anyun.im_lib;
 
import com.anyun.im_lib.listener.OnEventListener;
 
/**
 * MyApplication2
 * Created by lzw on 2019/12/2. 14:02:14
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class MsgDispatcher {
 
    private OnEventListener onEventListener;
 
    public void setOnEventListener(OnEventListener listener) {
        this.onEventListener = listener;
    }
 
    public void receivedMsg(byte[] msg){
        // TODO: 2019/12/12
        if (onEventListener != null){
            onEventListener.dispatchMsg(msg);
        }
    }
}