public void OnClickExitGroup() { ChangeGroupReq req = new ChangeGroupReq { changeType = ChangeGroupReq.ChangeType.DELETE, groupId = _groupItem.groupId, }; req.userId.Add(GlobalUser.GetInstance().UserId); NetworkManager.GetInstance().SendPacket<ChangeGroupReq>(ENetworkMessage.CHANGE_GROUP_REQ, req); }
public void OnClickConfirmButton() { if (_selectUserIdSet.Count == 0) { DialogManager.GetInstance().CreateSingleButtonDialog("您还没有选择群组成员!"); return; } if (_groupItem == null) { CreateGroupChatReq req = new CreateGroupChatReq(); foreach (var item in _selectUserIdSet) { req.userId.Add(item); } NetworkManager.GetInstance().SendPacket<CreateGroupChatReq>(ENetworkMessage.CREATE_GROUP_CHAT_REQ, req); } else { ChangeGroupReq req = new ChangeGroupReq(); req.changeType = ChangeGroupReq.ChangeType.ADD; req.groupId = _groupItem.groupId; foreach (var item in _selectUserIdSet) { req.userId.Add(item); } NetworkManager.GetInstance().SendPacket<ChangeGroupReq>(ENetworkMessage.CHANGE_GROUP_REQ, req); } }
public void OnConfirmSetGroupName(string name) { ChangeGroupReq req = new ChangeGroupReq { changeType = ChangeGroupReq.ChangeType.UPDATE_INFO, groupId = _groupItem.groupId, groupName = name, }; NetworkManager.GetInstance().SendPacket<ChangeGroupReq>(ENetworkMessage.CHANGE_GROUP_REQ, req); }