switch(inMsg.getCmdType()) {
case ChatCommandId.C_LOGIN_REQ:
new Login(session, inMsg).run();
break;
case ChatCommandId.C_FRIENDLIST_REFURBISH_REQ:
new FriendList(session,inMsg).run();
break;
case ChatCommandId.C_ADDFRIEND_REQ:
new AddFriend(session,inMsg).run();
break;
case ChatCommandId.C_HEARTBEAT_REQ: