public async UniTask <EmptyMessage> UpdateAccessTokenAsync(UpdateAccessTokenReq request) { var result = await Client.SendRequestAsync <UpdateAccessTokenReq, EmptyMessage>(DatabaseRequestTypes.RequestUpdateAccessToken, request); if (result.ResponseCode != AckResponseCode.Success) { return(EmptyMessage.Value); } return(result.Response); }
public async UniTask <AsyncResponseData <EmptyMessage> > UpdateAccessTokenAsync(UpdateAccessTokenReq request) { var resp = await Client.SendRequestAsync <UpdateAccessTokenReq, EmptyMessage>(DatabaseRequestTypes.RequestUpdateAccessToken, request); if (!resp.IsSuccess) { Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(UpdateAccessTokenAsync)} status: {resp.ResponseCode}"); } return(resp); }