Newsbot.Cli/Newsbot.Domain/Models/Collector/ArticlesDto.cs

45 lines
1.1 KiB
C#

using Newtonsoft.Json;
namespace jtom38.Newsbot.Domain.Models.Collector;
public class ArticlesDto
{
[JsonProperty("id")]
public Guid Id { get; set; }
[JsonProperty("sourceId")]
public Guid SourceId { get; set; }
[JsonProperty("tags")]
public List<string>? Tags { get; set; }
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("url")]
public string? Url { get; set; }
[JsonProperty("pubDate")]
public DateTime PubDate { get; set; }
[JsonProperty("video")]
public string? Video { get; set; }
[JsonProperty("videoHeight")]
public int VideoHeight { get; set; }
[JsonProperty("videoWidth")]
public int VideoWidth { get; set; }
[JsonProperty("thumbnail")]
public string? Thumbnail { get; set; }
[JsonProperty("description")]
public string? Description { get; set; }
[JsonProperty("authorName")]
public string? AuthorName { get; set; }
[JsonProperty("authorImage")]
public string? AuthorImage { get; set; }
}