Ejemplo n.º 1
0
        public async UniTask <EmptyMessage> ClearCharacterPartyAsync(ClearCharacterPartyReq request)
        {
            var result = await Client.SendRequestAsync <ClearCharacterPartyReq, EmptyMessage>(DatabaseRequestTypes.RequestClearCharacterParty, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(EmptyMessage.Value);
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <EmptyMessage> > ClearCharacterPartyAsync(ClearCharacterPartyReq request)
        {
            var resp = await Client.SendRequestAsync <ClearCharacterPartyReq, EmptyMessage>(DatabaseRequestTypes.RequestClearCharacterParty, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(ClearCharacterPartyAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }