Example #1
0
        private static bool Filter(SamoletNewsRecord r)
        {
            if (IgnoreWords.Any(w => r.Title.Contains(w, StringComparison.InvariantCultureIgnoreCase)))
            {
                return(false);
            }

            return(true);
        }
Example #2
0
 private static FeedItem GetFeedItem(SamoletNewsRecord r)
 {
     return(new FeedItem
     {
         Id = r.Id,
         Title = r.Title,
         DatePublished = DateTimeOffset.ParseExact(r.Date, "dd.MM.yyyy", CultureInfo.CurrentCulture),
         Url = r.Url,
         ContentText = r.Description
     });
 }