public void GetTypedFeeds()
 {
     TransitFeedQueryOptions options = new TransitFeedQueryOptions();
     options.Type = TransitFeedType.Rss;
     TransitFeed[] feeds = Blog.GetFeeds(Ticket, options);
     Assert.IsNotNull(feeds);
     Console.WriteLine("Feeds: {0}", feeds.Length);
 }
Beispiel #2
0
 /// <remarks/>
 public void GetFeedsAsync(string ticket, TransitFeedQueryOptions options, object userState) {
     if ((this.GetFeedsOperationCompleted == null)) {
         this.GetFeedsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFeedsOperationCompleted);
     }
     this.InvokeAsync("GetFeeds", new object[] {
                 ticket,
                 options}, this.GetFeedsOperationCompleted, userState);
 }
Beispiel #3
0
 public TransitFeed[] GetFeeds(string ticket, TransitFeedQueryOptions options) {
     object[] results = this.Invoke("GetFeeds", new object[] {
                 ticket,
                 options});
     return ((TransitFeed[])(results[0]));
 }
Beispiel #4
0
 /// <remarks/>
 public void GetFeedsAsync(string ticket, TransitFeedQueryOptions options) {
     this.GetFeedsAsync(ticket, options, null);
 }
Beispiel #5
0
 public int GetFeedsCount(string ticket, TransitFeedQueryOptions options) {
     object[] results = this.Invoke("GetFeedsCount", new object[] {
                 ticket,
                 options});
     return ((int)(results[0]));
 }