Esempio n. 1
0
        public RestOperationCanceler GetUserTimelineAsync(long userId, int count, long sinceId, long maxId, Action <RestOperationCompletedEventArgs <IList <Tweet> > > operationCompleted)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            parameters.Add("user_id", userId.ToString());
            return(this.restTemplate.GetForObjectAsync <IList <Tweet> >(this.BuildUrl("statuses/user_timeline.json", parameters), operationCompleted));
        }
Esempio n. 2
0
        public Task <IList <Tweet> > GetUserTimelineAsync(string screenName, int count, long sinceId, long maxId)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            parameters.Add("screen_name", screenName);
            return(this.restTemplate.GetForObjectAsync <IList <Tweet> >(this.BuildUrl("statuses/user_timeline.json", parameters)));
        }
Esempio n. 3
0
        public IList <Tweet> GetUserTimeline(long userId, int count, long sinceId, long maxId)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            parameters.Add("user_id", userId.ToString());
            return(this.restTemplate.GetForObject <IList <Tweet> >(this.BuildUrl("statuses/user_timeline.json", parameters)));
        }
        public Task <IList <Tweet> > GetListStatusesAsync(long listId, int count, long sinceId, long maxId)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            parameters.Add("list_id", listId.ToString());
            return(this.restTemplate.GetForObjectAsync <IList <Tweet> >(this.BuildUrl("lists/statuses.json", parameters)));
        }
Esempio n. 5
0
        public Task <IList <TwitterProfile> > SearchForUsersAsync(string query, int page, int pageSize)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithPerPage(page, pageSize, 0, 0);

            parameters.Add("q", query);
            return(this.restTemplate.GetForObjectAsync <IList <TwitterProfile> >(this.BuildUrl("users/search.json", parameters)));
        }
Esempio n. 6
0
        public RestOperationCanceler SearchForUsersAsync(string query, int page, int pageSize, Action <RestOperationCompletedEventArgs <IList <TwitterProfile> > > operationCompleted)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithPerPage(page, pageSize, 0, 0);

            parameters.Add("q", query);
            return(this.restTemplate.GetForObjectAsync <IList <TwitterProfile> >(this.BuildUrl("users/search.json", parameters), operationCompleted));
        }
        public RestOperationCanceler GetListStatusesAsync(string screenName, string listSlug, int count, long sinceId, long maxId, Action <RestOperationCompletedEventArgs <IList <Tweet> > > operationCompleted)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            parameters.Add("owner_screen_name", screenName);
            parameters.Add("slug", listSlug);
            return(this.restTemplate.GetForObjectAsync <IList <Tweet> >(this.BuildUrl("lists/statuses.json", parameters), operationCompleted));
        }
        public IList <Tweet> GetListStatuses(string screenName, string listSlug, int count, long sinceId, long maxId)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            parameters.Add("owner_screen_name", screenName);
            parameters.Add("slug", listSlug);
            return(this.restTemplate.GetForObject <IList <Tweet> >(this.BuildUrl("lists/statuses.json", parameters)));
        }
Esempio n. 9
0
        public Task <IList <DirectMessage> > GetDirectMessagesSentAsync(int page, int pageSize, long sinceId, long maxId)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithPageCount(page, pageSize, sinceId, maxId);

            return(this.restTemplate.GetForObjectAsync <IList <DirectMessage> >(this.BuildUrl("direct_messages/sent.json", parameters)));
        }
Esempio n. 10
0
        public RestOperationCanceler GetDirectMessagesSentAsync(int page, int pageSize, long sinceId, long maxId, Action <RestOperationCompletedEventArgs <IList <DirectMessage> > > operationCompleted)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithPageCount(page, pageSize, sinceId, maxId);

            return(this.restTemplate.GetForObjectAsync <IList <DirectMessage> >(this.BuildUrl("direct_messages/sent.json", parameters), operationCompleted));
        }
Esempio n. 11
0
        public Task <IList <Tweet> > GetHomeTimelineAsync(int count, long sinceId, long maxId)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            return(this.restTemplate.GetForObjectAsync <IList <Tweet> >(this.BuildUrl("statuses/home_timeline.json", parameters)));
        }
Esempio n. 12
0
        public RestOperationCanceler GetFavoritesAsync(int count, Action <RestOperationCompletedEventArgs <IList <Tweet> > > operationCompleted)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, 0, 0);

            return(this.restTemplate.GetForObjectAsync <IList <Tweet> >(this.BuildUrl("favorites/list.json", parameters), operationCompleted));
        }
Esempio n. 13
0
        public RestOperationCanceler GetRetweetsOfMeAsync(int count, long sinceId, long maxId, Action <RestOperationCompletedEventArgs <IList <Tweet> > > operationCompleted)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            return(this.restTemplate.GetForObjectAsync <IList <Tweet> >(this.BuildUrl("statuses/retweets_of_me.json", parameters), operationCompleted));
        }
Esempio n. 14
0
        public IList <Tweet> GetFavorites(int count)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, 0, 0);

            return(this.restTemplate.GetForObject <IList <Tweet> >(this.BuildUrl("favorites/list.json", parameters)));
        }
Esempio n. 15
0
        public IList <Tweet> GetRetweetsOfMe(int count, long sinceId, long maxId)
        {
            NameValueCollection parameters = PagingUtils.BuildPagingParametersWithCount(count, sinceId, maxId);

            return(this.restTemplate.GetForObject <IList <Tweet> >(this.BuildUrl("statuses/retweets_of_me.json", parameters)));
        }