Пример #1
0
        private async Task ClientReady()
        {
            while (true)
            {
                try
                {
                    client = new SekaiClient.SekaiClient(new SekaiClient.EnvironmentInfo(), false);
                    await client.UpgradeEnvironment();

                    await client.Login(await client.Register());

                    await client.PassTutorial(true);

                    break;
                }
                catch (Exception e)
                {
                    this.Log(LoggerLevel.Error, e.ToString());
                }
            }
            //var master = await client.CallApi("/suite/master", HttpMethod.Get, null);
            //eventId = master["events"].Last().Value<int>("id");
            eventId = 1;
        }
Пример #2
0
        private async Task ClientReady()
        {
            while (true)
            {
                try
                {
                    client = new SekaiClient.SekaiClient(new SekaiClient.EnvironmentInfo(), false);
                    await client.UpgradeEnvironment();

                    await client.Login(await client.Register());

                    await MasterData.Initialize(client);

                    await client.PassTutorial(true);

                    break;
                }
                catch (Exception e)
                {
                    this.Log(LoggerLevel.Error, e.ToString());
                }
            }
            eventId = MasterData.Instance.events.Last().id;
        }