コード例 #1
0
 public IEnumerable<FeedItem> GetLabel(string label, ReaderFeedParameters parameters)
 {
     Uri requestUrl = _urlBuilder.BuildUri(UrlType.Label, label, parameters);
     return ExecGetFeed(requestUrl);
 }
コード例 #2
0
 public IEnumerable<FeedItem> GetTag(ItemTag tag, ReaderFeedParameters parameters)
 {
     Uri requestUrl = _urlBuilder.BuildUri(UrlType.Tag, tag, parameters);
     return ExecGetFeed(requestUrl);
 }
コード例 #3
0
 /// <summary>
 /// Same as <see cref="GetFeed"/> but asyncronously
 /// </summary>
 /// <param name="feedUrl">The url of the feed</param>
 /// <param name="parameters">The parameters to configure the feed retrieval</param>
 /// <param name="onSuccess">The callback function that will executed when the call is completed successfully</param>
 /// <param name="onError">The callback function that will executed when an error occurs</param>
 /// <param name="onFinally">The callback function that will always be executed at the end of the call</param>
 public void GetFeed(string feedUrl, ReaderFeedParameters parameters,
     Action<IEnumerable<FeedItem>> onSuccess = null, Action<Exception> onError = null, Action onFinally = null)
 {
     Uri requestUrl = _urlBuilder.BuildUri(UrlType.Feed, feedUrl, parameters);
     ExecGetFeedAsync(requestUrl, onSuccess, onError, onFinally);
 }