Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.83 KB | None | 0 0
  1.     public class PageInfo
  2.     {
  3.         public int totalResults { get; set; }
  4.         public int resultsPerPage { get; set; }
  5.     }
  6.  
  7.     public class AuthorChannelId
  8.     {
  9.         public string value { get; set; }
  10.     }
  11.  
  12.     public class Snippet2
  13.     {
  14.         public string authorDisplayName { get; set; }
  15.         public string authorProfileImageUrl { get; set; }
  16.         public string authorChannelUrl { get; set; }
  17.         public AuthorChannelId authorChannelId { get; set; }
  18.         public string videoId { get; set; }
  19.         public string textDisplay { get; set; }
  20.         public string textOriginal { get; set; }
  21.         public bool canRate { get; set; }
  22.         public string viewerRating { get; set; }
  23.         public int likeCount { get; set; }
  24.         public DateTime publishedAt { get; set; }
  25.         public DateTime updatedAt { get; set; }
  26.     }
  27.  
  28.     public class TopLevelComment
  29.     {
  30.         public string kind { get; set; }
  31.         public string etag { get; set; }
  32.         public string id { get; set; }
  33.         public Snippet2 snippet { get; set; }
  34.     }
  35.  
  36.     public class Snippet
  37.     {
  38.         public string videoId { get; set; }
  39.         public TopLevelComment topLevelComment { get; set; }
  40.         public bool canReply { get; set; }
  41.         public int totalReplyCount { get; set; }
  42.         public bool isPublic { get; set; }
  43.     }
  44.  
  45.     public class Item
  46.     {
  47.         public string kind { get; set; }
  48.         public string etag { get; set; }
  49.         public string id { get; set; }
  50.         public Snippet snippet { get; set; }
  51.     }
  52.  
  53.     public class APIResponse
  54.     {
  55.         public string kind { get; set; }
  56.         public string etag { get; set; }
  57.         public string nextPageToken { get; set; }
  58.         public PageInfo pageInfo { get; set; }
  59.         public List<Item> items { get; set; }
  60.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement