Ejemplo n.º 1
0
        public object Clone()
        {
            HttpTwitter myCopy = new HttpTwitter();

            myCopy.Initialize(this.AccessToken, this.AccessTokenSecret, this.ConsumerKey, this.ConsumerSecret, this.AuthenticatedUsername, this.AuthenticatedUserId);
            return(myCopy);
        }
Ejemplo n.º 2
0
 public object Clone()
 {
     HttpTwitter myCopy = new HttpTwitter();
     myCopy.Initialize(this.AccessToken, this.AccessTokenSecret, this.ConsumerKey, this.ConsumerSecret, this.AuthenticatedUsername, this.AuthenticatedUserId);
     return myCopy;
 }
Ejemplo n.º 3
0
 public TwitterUserstream(HttpTwitter twitterConnection)
 {
     twCon = (HttpTwitter)twitterConnection.Clone();
 }
Ejemplo n.º 4
0
 public TwitterUserstream(Twitter tw)
 {
     this.tw = tw;
     this.twCon = (HttpTwitter)tw.twCon.Clone();
 }
Ejemplo n.º 5
0
 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();
 }
Ejemplo n.º 6
0
 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();
 }