Пример #1
0
 public Entry(Feedly.Entry entryDto) : base(entryDto.Id)
 {
     OriginId      = entryDto.OriginId;
     Fingerprint   = entryDto.Fingerprint;
     Updated       = entryDto.Updated;
     Title         = entryDto.Title;
     Published     = entryDto.Published;
     Crawled       = entryDto.Crawled;
     Author        = entryDto.Author;
     Summary       = ExtractText(entryDto.Summary?.Content);
     ThumbnailUrl  = entryDto.Visual?.Url ?? string.Empty;
     Content       = entryDto.Content?.Content ?? string.Empty;
     Unread        = entryDto.Unread;
     Engagement    = entryDto.Engagement;
     PublishedDate = TimeSpanConverter.ConvertToDate(Published).ToString("MMM dd");
     ElepsedDays   = (int)(DateTime.Now - TimeSpanConverter.ConvertToDate(Published)).TotalDays;
 }