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