public async UniTask <AsyncResponseData <GetMailResp> > GetMailAsync(GetMailReq request) { var resp = await Client.SendRequestAsync <GetMailReq, GetMailResp>(DatabaseRequestTypes.RequestGetMail, request); if (!resp.IsSuccess) { Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(GetMailAsync)} status: {resp.ResponseCode}"); } return(resp); }
public async UniTask <GetMailResp> GetMailAsync(GetMailReq request) { var result = await Client.SendRequestAsync <GetMailReq, GetMailResp>(DatabaseRequestTypes.RequestGetMail, request); if (result.ResponseCode != AckResponseCode.Success) { return(new GetMailResp()); } return(result.Response); }