package com.anyun.im_lib;
|
|
import android.util.Log;
|
|
import com.anyun.im_lib.interf.IMSClientInteface;
|
|
import io.netty.buffer.ByteBuf;
|
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelInboundHandlerAdapter;
|
|
/**
|
* MyApplication2
|
* 设备鉴权
|
* Created by lzw on 2019/12/4. 11:25:33
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
public class LoginAuthRespHandler extends ChannelInboundHandlerAdapter {
|
|
private static final String TAG = LoginAuthRespHandler.class.getSimpleName();
|
private IMSClientInteface imsClient;
|
|
@Override
|
public void channelActive(ChannelHandlerContext ctx) throws Exception {
|
super.channelActive(ctx);
|
Log.i(TAG, "channelActive: ");
|
|
}
|
|
/**
|
* 构造函数
|
* @param imsClient
|
*/
|
public LoginAuthRespHandler(IMSClientInteface imsClient) {
|
this.imsClient = imsClient;
|
}
|
|
@Override
|
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
|
super.channelReadComplete(ctx);
|
Log.i(TAG, "channelReadComplete");
|
}
|
|
@Override
|
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
|
super.channelRead(ctx, msg);
|
// Log.i(TAG, "channelRead"+(String)msg);
|
// TODO: 2019/12/4
|
}
|
}
|