
package org.tio.sitexxx.im.server.handler.wx.chatitem;

import org.tio.sitexxx.im.server.handler.wx.WxChatApi;
import org.tio.core.ChannelContext;
import org.tio.sitexxx.service.Command;
import org.tio.sitexxx.im.common.CommandHandler;
import org.tio.sitexxx.im.common.ImPacket;
import org.tio.sitexxx.im.server.handler.AbsImServerHandler;
import org.tio.sitexxx.service.model.main.User;
import org.tio.sitexxx.service.vo.SimpleUser;

/**
 * 焦点同步请求，Client-->Server
 * 
 * @author xufei
 * 2020年8月27日 下午3:14:44
 */
@CommandHandler(Command.WxFocusReq)
public class WxFocusReqHandler extends AbsImServerHandler {

	@Override
	public void handler(ImPacket packet, ChannelContext channelContext, boolean isWebsocket, User curr, SimpleUser currSimpleUser) throws Exception {
		WxChatApi.focusNtf(curr.getId(), null);
	}
}
