コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Reference.cs プロジェクト: dblock/dblog
 /// <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);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: dblock/dblog
 public TransitFeed[] GetFeeds(string ticket, TransitFeedQueryOptions options) {
     object[] results = this.Invoke("GetFeeds", new object[] {
                 ticket,
                 options});
     return ((TransitFeed[])(results[0]));
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: dblock/dblog
 /// <remarks/>
 public void GetFeedsAsync(string ticket, TransitFeedQueryOptions options) {
     this.GetFeedsAsync(ticket, options, null);
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: dblock/dblog
 public int GetFeedsCount(string ticket, TransitFeedQueryOptions options) {
     object[] results = this.Invoke("GetFeedsCount", new object[] {
                 ticket,
                 options});
     return ((int)(results[0]));
 }