Advertisement
Guest User

POCO

a guest
Apr 9th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.34 KB | None | 0 0
  1.     public class NewsFeed
  2.     {
  3.         [JsonProperty("articles")]
  4.         public Article[] Articles { get; set; }
  5.  
  6.         [JsonProperty("description")]
  7.         public string Description { get; set; }
  8.  
  9.         [JsonProperty("syndication_url")]
  10.         public string SyndicationUrl { get; set; }
  11.  
  12.         [JsonProperty("title")]
  13.         public string Title { get; set; }
  14.     }
  15.  
  16.     public class Article
  17.     {
  18.         [JsonProperty("author")]
  19.         public string Author { get; set; }
  20.  
  21.         [JsonProperty("publish_date")]
  22.         public string PublishDate { get; set; }
  23.  
  24.         [JsonProperty("source")]
  25.         public string Source { get; set; }
  26.  
  27.         [JsonProperty("source_url")]
  28.         public string SourceUrl { get; set; }
  29.  
  30.         [JsonProperty("summary")]
  31.         public string Summary { get; set; }
  32.  
  33.         [JsonProperty("title")]
  34.         public string Title { get; set; }
  35.  
  36.         [JsonProperty("url")]
  37.         public string Url { get; set; }
  38.  
  39.         [JsonProperty("enclosures")]
  40.         public Enclosure[] Enclosures { get; set; }
  41.     }
  42.  
  43.     public class Enclosure
  44.     {
  45.         [JsonProperty("length")]
  46.         public int Length { get; set; }
  47.  
  48.         [JsonProperty("media_type")]
  49.         public string MediaType { get; set; }
  50.  
  51.         [JsonProperty("uri")]
  52.         public string Uri { get; set; }
  53.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement