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);
        }
示例#2
0
        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);
        }