protected override void onSuccess(DelChatRoomMemberRequest request, DelChatRoomMemberResponse response) { Log.i("NetSceneDelChatRoomMember", "doscene respone sucess"); RetConst ret = (RetConst)response.BaseResponse.Ret; NetSceneDelChatRoomMemberResult result = new NetSceneDelChatRoomMemberResult { retCode = (RetConst)response.BaseResponse.Ret, sceneDelChatRoomMember = this, nameList = new List <string>() }; for (int i = 0; i < response.MemberListList.Count; i++) { result.nameList.Add(response.MemberListList[i].MemberName.String); } if (result.retCode != RetConst.MM_OK) { Log.e("NetSceneDelChatRoomMember", "send AddChatRoomMemberRequest failed ret =" + ret); EventCenter.postEvent(EventConst.ON_NETSCENE_DEL_CHATROOM_MEMBER_ERR, result, null); } else if (!ChatRoomMgr.delChatroomMember(request.ChatRoomName, response)) { Log.e("NetSceneDelChatRoomMember", "delChatroomMember : fail"); EventCenter.postEvent(EventConst.ON_NETSCENE_DEL_CHATROOM_MEMBER_ERR, result, null); } else { Log.i("NetSceneDelChatRoomMember", "doscene post sucess"); EventCenter.postEvent(EventConst.ON_NETSCENE_DEL_CHATROOM_MEMBER_SUCCESS, result, null); } }
protected override void onFailed(DelChatRoomMemberRequest request, DelChatRoomMemberResponse response) { Log.e("NetSceneDelChatRoomMember", "send AddChatRoomMemberRequest failed"); NetSceneDelChatRoomMemberResult result = new NetSceneDelChatRoomMemberResult { retCode = RetConst.MM_ERR_CLIENT, sceneDelChatRoomMember = this }; EventCenter.postEvent(EventConst.ON_NETSCENE_DEL_CHATROOM_MEMBER_ERR, result, null); }