private void GetUserInfo() { using (Twitter t = new Twitter()) { User_ = t.ShowUser(ScreenName); ShowTextValues(); } }
private void TwitterLogin() { try { string SinceId = Regedit.GetKey_("since_recent"); Twitter login = new Twitter(ScreenName, Password); // TimeLine geliyor SetTextBoxText(dil_.GetString("LOGIN_LOADING_1", cInfo_), lLoading); //1. Okunmamislar Aliniyor. Since_id LoadTweetItem(login.FriendsTimeLine(SinceId), false); //2. SinceId Yenileniyor if(FriendsTimeLine.Count > 0) login.SetSinceId(FriendsTimeLine[0].ItemTweet); //3. Okunmuslar Aliniyor. Max_id if(!String.IsNullOrEmpty(SinceId)) LoadTweetItem(login.FriendsTimeLine(SinceId, true), true); //4. User Bilgileri Aliniyor. SetTextBoxText(dil_.GetString("LOGIN_LOADING_2", cInfo_), lLoading); LoginUser = login.ShowUser(ScreenName); LoginUser.UserName = ScreenName; LoginUser.UserPass = Password; // Hesap Regedit'e yazılyor. if (cRemember.Checked) RememberThisAccount(ScreenName, Password); DialogResult = DialogResult.OK; } catch (Exception ex) { SetTextBoxText(ex.Message, lLoading); Thread.Sleep(4000); SetPanelVisibility(P1, true); SetPanelVisibility(P2, false); } }
public void CreateFavorite(object TweetId) { using (Twitter t = new Twitter(TwitterUser.UserName, TwitterUser.UserPass)) { t.Favorite(TweetId.ToString()); SetFavoriteById(TweetId.ToString(),true); SetStatusMsg(dil_.GetString("TIME_LINE_MESAJ_8_0", cInfo_)); } }
public void UnFollowUser(object ScreenName) { using (Twitter t = new Twitter(TwitterUser.UserName, TwitterUser.UserPass)) { t.UnFollow(ScreenName.ToString()); SetStatusMsg( String.Format(dil_.GetString("TIME_LINE_MESAJ_12", cInfo_), ScreenName)); } }
public void DestroyStatus(object TweetId) { using (Twitter t = new Twitter(TwitterUser.UserName, TwitterUser.UserPass)) { t.Destroy(TweetId.ToString()); SetDestroyById(TweetId.ToString()); SetStatusMsg(dil_.GetString("TIME_LINE_MESAJ_9", cInfo_)); } }
public void DestroyFavorite(object TweetId) { using (Twitter t = new Twitter(TwitterUser.UserName, TwitterUser.UserPass)) { t.UnFavorite(TweetId.ToString()); SetFavoriteById(TweetId.ToString(),false); SetStatusMsg(dil_.GetString("TIME_LINE_MESAJ_8_1", cInfo_)); } }
public CheckTweets(User t) { TwetterUser = t; TwitterApi = new Twitter(TwetterUser.UserName, TwetterUser.UserPass); }
private void Guncelle(object Status) { try { if (Status != null) { Twitter t = new Twitter(TwitterUser.UserName, TwitterUser.UserPass); t.Update(Status.ToString()); } } catch (Exception emsg) { MessageBox.Show(emsg.Message); } }