Пример #1
0
        public async UniTask <GuildGoldResp> ChangeGuildGoldAsync(ChangeGuildGoldReq request)
        {
            var result = await Client.SendRequestAsync <ChangeGuildGoldReq, GuildGoldResp>(DatabaseRequestTypes.RequestChangeGuildGold, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new GuildGoldResp());
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <GuildGoldResp> > ChangeGuildGoldAsync(ChangeGuildGoldReq request)
        {
            var resp = await Client.SendRequestAsync <ChangeGuildGoldReq, GuildGoldResp>(DatabaseRequestTypes.RequestChangeGuildGold, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(ChangeGuildGoldAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }