示例#1
0
        public bool VerifyLogin(string username, string password)
        {
            ShareSettings.Default.Reload();
            AccessToken = ShareSettings.Default.TwitchAccessToken;

            if (VerifyAccessToken())
            {
                Chat = new TwitchChat(AccessToken);

                return(true);
            }
            else
            {
                var form = new TwitchOAuthForm();
                form.ShowDialog();

                AccessToken = form.AccessToken;

                var verified = VerifyAccessToken();

                if (verified)
                {
                    Chat = new TwitchChat(AccessToken);
                }

                return(verified);
            }
        }
示例#2
0
        public bool VerifyLogin()
        {
            AccessToken = WebCredentials.TwitchAccessToken;

            if (VerifyAccessToken())
            {
                return(true);
            }

            var form = new TwitchOAuthForm();

            form.ShowDialog();

            AccessToken = form.AccessToken;

            var verified = VerifyAccessToken();

            return(verified);
        }
示例#3
0
        public bool VerifyLogin()
        {
            ShareSettings.Default.Reload();
            AccessToken = ShareSettings.Default.TwitchAccessToken;

            if (VerifyAccessToken())
            {
                return(true);
            }
            else
            {
                var form = new TwitchOAuthForm();
                form.ShowDialog();

                AccessToken = form.AccessToken;

                var verified = VerifyAccessToken();

                return(verified);
            }
        }
示例#4
0
文件: Twitch.cs 项目: 0xwas/LiveSplit
        public bool VerifyLogin()
        {
            ShareSettings.Default.Reload();
            AccessToken = ShareSettings.Default.TwitchAccessToken;

            if (VerifyAccessToken())
            {
                return true;
            }
            else
            {
                var form = new TwitchOAuthForm();
                form.ShowDialog();

                AccessToken = form.AccessToken;

                var verified = VerifyAccessToken();

                return verified;
            }
        }