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)); }
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))); }
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))); }
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))); }
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))); }
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))); }
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)); }
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))); }
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)); }
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)); }
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))); }
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))); }