Ejemplo n.º 1
0
 public NewsApiArticle(NewsApiSourceShort source, string author, string title, string description, string url, string urlToImage, DateTime?publishedAt)
 {
     Source      = source;
     Author      = author;
     Title       = title;
     Description = description;
     Url         = url;
     UrlToImage  = urlToImage;
     PublishedAt = publishedAt;
 }
Ejemplo n.º 2
0
 bool Equals(NewsApiSourceShort other)
 {
     return(Id == other.Id && Name == other.Name);
 }