~alexlauni/do-plugins/twitter-api-fixes

« back to all changes in this revision

Viewing changes to Microblogging/src/MicroblogClient.cs

  • Committer: Alex Launi
  • Date: 2009-04-13 04:10:11 UTC
  • Revision ID: alex.launi@temple.edu-20090413041011-rwkc4sqln86x92l9
fix some issues caused by twitter API change

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
                readonly string FailedPostMsg = Catalog.GetString ("Unable to post tweet. Check your login settings. If you "
46
46
                        + "are behind a proxy make sure that the settings in /system/http_proxy are correct.");
47
47
 
48
 
                const int UpdateTimelineTimeout = 30 * 1000;
49
 
                const int UpdateContactsTimeout = 10 * 60 * 1000;
50
 
                const int CheckForMessagesTimeout = 5 * 60 * 1000;
 
48
                const int UpdateTimelineTimeout = 60 * 1000; // every 60 seconds
 
49
                const int UpdateContactsTimeout = 30 * 1000 * 60; // every 30 minutes
 
50
                const int CheckForMessagesTimeout = 5 * 1000 * 60; // every 5 minutespr
51
51
 
52
52
                #endregion
53
53
 
61
61
                
62
62
                static MicroblogClient ()
63
63
                {
 
64
                        Log<MicroblogClient>.Debug ("Using limited version!!!~~~~~");
64
65
                        PhotoDirectory = new [] { Services.Paths.UserDataDirectory, "Microblogging", "photos"}.Aggregate (Path.Combine);
65
66
                }
66
67
                
121
122
                                newContacts = new List<FriendItem> ();
122
123
                                friends = blog.User.Friends ();
123
124
                        } catch (TwitterizerException e) {
 
125
                                Log.Error("{0} {1}", e.RequestData.ResponseException.Message, e.RequestData.ResponseException.StackTrace);
124
126
                                Log<MicroblogClient>.Debug (GenericErrorMsg, "UpdateContacts", e.Message);
125
127
                                return;
126
128
                        }
127
129
                        
128
130
                        foreach (TwitterUser friend in friends) {
 
131
                                Log<MicroblogClient>.Error ("we had friendzzz");
129
132
                                if (friend.Status != null) {
130
133
                                        status = new MicroblogStatus (friend.Status.ID, friend.Status.Text, friend.ScreenName, friend.Status.Created);
131
134
                                        newContact = new FriendItem (friend.ID, friend.ScreenName, status);