Пример #1
0
        public TwitterClient()
        {
            loginParams logpara = loadToken();

            if (logpara == null || !(logpara is TwitterLoginParams))
            {
                Authentication();
            }
            else
            {
                login(logpara as TwitterLoginParams);
            }
        }
Пример #2
0
        public override bool login(loginParams twitterparams)
        {
            if (twitterparams is TwitterLoginParams)
            {
                var para = (TwitterLoginParams)twitterparams;
                try
                {
                    tkn = Tokens.Create(para.consumerKey, para.consumerSecret, para.accessToken, para.accessSecret);
                }
                catch
                {
                    logOutput.writeLog("Login Failed");
                }
            }

            return(true);
        }
Пример #3
0
 public abstract bool login(loginParams para);