示例#1
0
        public void OnGetUserInfoRsp(uint iMessageType, object kParam)
        {
            GetUserInfoRsp rsp = kParam as GetUserInfoRsp;

            if (rsp.resultCode == GetUserInfoRsp.ResultCode.SUCCESS)
            {
                StateManager.GetInstance().PushState <FriendDetailPanel>(EUIType.FriendDetailPanel, rsp.userItem[0]);
            }
            else if (rsp.resultCode == GetUserInfoRsp.ResultCode.USER_NOT_EXIST)
            {
                DialogManager.GetInstance().CreateSingleButtonDialog("没有用户名为" + _inputUserID.text + "的用户哦");
            }
        }
示例#2
0
        public void OnGetUserInfo(uint iMessageType, object kParam)
        {
            GetUserInfoRsp rsp = kParam as GetUserInfoRsp;

            if (rsp.resultCode == GetUserInfoRsp.ResultCode.SUCCESS)
            {
                foreach (var item in rsp.userItem)
                {
                    if (!_groupMemberDict.ContainsKey(item.userId))
                    {
                        _groupMemberDict.Add(item.userId, item);
                    }
                }
            }
        }