public async UniTask <AsyncResponseData <EmptyMessage> > DeletePartyAsync(DeletePartyReq request)
        {
            var resp = await Client.SendRequestAsync <DeletePartyReq, EmptyMessage>(DatabaseRequestTypes.RequestDeleteParty, request);

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

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(EmptyMessage.Value);
            }
            return(result.Response);
        }