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