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); }
/// <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); }
public TransitFeed[] GetFeeds(string ticket, TransitFeedQueryOptions options) { object[] results = this.Invoke("GetFeeds", new object[] { ticket, options}); return ((TransitFeed[])(results[0])); }
/// <remarks/> public void GetFeedsAsync(string ticket, TransitFeedQueryOptions options) { this.GetFeedsAsync(ticket, options, null); }
public int GetFeedsCount(string ticket, TransitFeedQueryOptions options) { object[] results = this.Invoke("GetFeedsCount", new object[] { ticket, options}); return ((int)(results[0])); }