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