public System.Collections.ObjectModel.ObservableCollection<CompanyFeed> GetCompanies() { CompanyFeed c = new CompanyFeed(); c.CompanyName = "Test"; ObservableCollection<CompanyFeed> Temp = new ObservableCollection<CompanyFeed>(); Temp.Add(c); return Temp; }
public void GetFeed(CompanyFeed Company, Action Callback) { ObservableCollection<FeedsService.FeedItem> temp = new ObservableCollection<FeedsService.FeedItem>(); FeedItem a = new FeedItem(); a.Title = "My Title"; a.Date = DateTime.Today.ToShortDateString(); a.Description = "this is a really long description this is a really long description this is a really long description this is a really long description this is a really long description this is a really long descriptionthis is a really long descriptionvthis is a really long descriptionthis is a really long descriptionthis is a really long descriptionthis is a really long descriptionthis is a really long descriptionthis is a really long description"; a.Url = "www.google.com"; temp.Add(a); FeedResults = temp; }
/// <summary> /// Retrieve the feed from the companies feed list through a webclient /// </summary> /// <param name="Company"></param> /// <returns></returns> public void GetFeed(CompanyFeed SelectedCompany, Action Callback) { if (Callback == null) { return; } FeedResultAvailable = Callback; switch (SelectedCompany.Platform) { case "Jobs2Web": GetJobs2WebFeed(SelectedCompany); break; default: break; } }
/// <summary> /// Gets the feed through the Jobs2Web WCF Service /// </summary> /// <param name="SelectedCompany"></param> /// <param name="Callback"></param> private void GetJobs2WebFeed(CompanyFeed SelectedCompany) { _WebClient.GetJobs2WebFeedCompleted += ServiceClient_Jobs2WebFeedCompleted; _WebClient.GetJobs2WebFeedAsync(SelectedCompany.FeedUrl); }
/// <summary> /// Retrieve the feed from the companies feed list through a webclient /// </summary> /// <param name="Company"></param> /// <returns></returns> public void GetFeed(CompanyFeed SelectedCompany, Action Callback) { if(Callback == null) { return; } FeedResultAvailable = Callback; switch (SelectedCompany.Platform) { case "Jobs2Web": GetJobs2WebFeed(SelectedCompany); break; default: break; } }