public async UniTask <AsyncResponseData <GuildResp> > AddGuildSkillAsync(AddGuildSkillReq request)
        {
            var resp = await Client.SendRequestAsync <AddGuildSkillReq, GuildResp>(DatabaseRequestTypes.RequestAddGuildSkill, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(AddGuildSkillAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
Example #2
0
        public async UniTask <GuildResp> AddGuildSkillAsync(AddGuildSkillReq request)
        {
            var result = await Client.SendRequestAsync <AddGuildSkillReq, GuildResp>(DatabaseRequestTypes.RequestAddGuildSkill, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new GuildResp());
            }
            return(result.Response);
        }