public async UniTask <AsyncResponseData <GuildResp> > CreateGuildAsync(CreateGuildReq request)
        {
            var resp = await Client.SendRequestAsync <CreateGuildReq, GuildResp>(DatabaseRequestTypes.RequestCreateGuild, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(CreateGuildAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
Esempio n. 2
0
        public async UniTask <GuildResp> CreateGuildAsync(CreateGuildReq request)
        {
            var result = await Client.SendRequestAsync <CreateGuildReq, GuildResp>(DatabaseRequestTypes.RequestCreateGuild, request);

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