Exemplo n.º 1
0
        public async UniTask <UpdateReadMailStateResp> UpdateReadMailStateAsync(UpdateReadMailStateReq request)
        {
            var result = await Client.SendRequestAsync <UpdateReadMailStateReq, UpdateReadMailStateResp>(DatabaseRequestTypes.RequestUpdateReadMailState, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new UpdateReadMailStateResp());
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <UpdateReadMailStateResp> > UpdateReadMailStateAsync(UpdateReadMailStateReq request)
        {
            var resp = await Client.SendRequestAsync <UpdateReadMailStateReq, UpdateReadMailStateResp>(DatabaseRequestTypes.RequestUpdateReadMailState, request);

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