public object Clone() { HttpTwitter myCopy = new HttpTwitter(); myCopy.Initialize(this.AccessToken, this.AccessTokenSecret, this.ConsumerKey, this.ConsumerSecret, this.AuthenticatedUsername, this.AuthenticatedUserId); return(myCopy); }
public object Clone() { HttpTwitter myCopy = new HttpTwitter(); myCopy.Initialize(this.AccessToken, this.AccessTokenSecret, this.ConsumerKey, this.ConsumerSecret, this.AuthenticatedUsername, this.AuthenticatedUserId); return myCopy; }
public TwitterUserstream(HttpTwitter twitterConnection) { twCon = (HttpTwitter)twitterConnection.Clone(); }
public TwitterUserstream(Twitter tw) { this.tw = tw; this.twCon = (HttpTwitter)tw.twCon.Clone(); }
public Twitter(string consumerKey, string consumerSecret) { AccountState = MyCommon.ACCOUNT_STATE.Invalid; twCon = new HttpTwitter(new OAuthConsumer(consumerKey, consumerSecret)); this.ResetApiStatus(); if (AppendSettingDialog.Instance.UserstreamStartup) ReconnectUserStream(); }
public Twitter(UserAccount account) { if (account == null) { AccountState = MyCommon.ACCOUNT_STATE.Invalid; } else { twCon = new HttpTwitter(account.Credential, account.UserId, account.Username, account.ProfileImageUrl); } this.ResetApiStatus(); if (AppendSettingDialog.Instance.UserstreamStartup) ReconnectUserStream(); }