public async UniTask <AsyncResponseData <UpdateClaimMailItemsStateResp> > UpdateClaimMailItemsStateAsync(UpdateClaimMailItemsStateReq request)
        {
            var resp = await Client.SendRequestAsync <UpdateClaimMailItemsStateReq, UpdateClaimMailItemsStateResp>(DatabaseRequestTypes.RequestUpdateClaimMailItemsState, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(UpdateClaimMailItemsStateAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
Exemple #2
0
        public async UniTask <UpdateClaimMailItemsStateResp> UpdateClaimMailItemsStateAsync(UpdateClaimMailItemsStateReq request)
        {
            var result = await Client.SendRequestAsync <UpdateClaimMailItemsStateReq, UpdateClaimMailItemsStateResp>(DatabaseRequestTypes.RequestUpdateClaimMailItemsState, request);

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