コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        /// <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;
            }
        }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
        /// <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;

            }
        }
コード例 #6
0
 /// <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);
 }