public async UniTask <AsyncResponseData <PartyResp> > UpdatePartyLeaderAsync(UpdatePartyLeaderReq request)
        {
            var resp = await Client.SendRequestAsync <UpdatePartyLeaderReq, PartyResp>(DatabaseRequestTypes.RequestUpdatePartyLeader, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(UpdatePartyLeaderAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
示例#2
0
        public async UniTask <PartyResp> UpdatePartyLeaderAsync(UpdatePartyLeaderReq request)
        {
            var result = await Client.SendRequestAsync <UpdatePartyLeaderReq, PartyResp>(DatabaseRequestTypes.RequestUpdatePartyLeader, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new PartyResp());
            }
            return(result.Response);
        }