public TwitterClient() { loginParams logpara = loadToken(); if (logpara == null || !(logpara is TwitterLoginParams)) { Authentication(); } else { login(logpara as TwitterLoginParams); } }
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); }
public abstract bool login(loginParams para);