Created
January 15, 2015 20:08
-
-
Save nozzlegear/31fd6475b89de6a753f2 to your computer and use it in GitHub Desktop.
A C# model for JSON YouTube response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ButterflyCore.Models | |
| { | |
| public class Thumbnail | |
| { | |
| public string sqDefault { get; set; } | |
| public string hqDefault { get; set; } | |
| } | |
| public class Player | |
| { | |
| public string @default { get; set; } | |
| public string mobile { get; set; } | |
| } | |
| public class Content | |
| { | |
| public string __invalid_name__5 { get; set; } | |
| public string __invalid_name__1 { get; set; } | |
| public string __invalid_name__6 { get; set; } | |
| } | |
| public class AccessControl | |
| { | |
| public string comment { get; set; } | |
| public string commentVote { get; set; } | |
| public string videoRespond { get; set; } | |
| public string rate { get; set; } | |
| public string embed { get; set; } | |
| public string list { get; set; } | |
| public string autoPlay { get; set; } | |
| public string syndicate { get; set; } | |
| } | |
| public class Item | |
| { | |
| public string id { get; set; } | |
| public string uploaded { get; set; } | |
| public string updated { get; set; } | |
| public string uploader { get; set; } | |
| public string category { get; set; } | |
| public string title { get; set; } | |
| public string description { get; set; } | |
| public Thumbnail thumbnail { get; set; } | |
| public Player player { get; set; } | |
| public Content content { get; set; } | |
| public int duration { get; set; } | |
| public string aspectRatio { get; set; } | |
| public double rating { get; set; } | |
| public string likeCount { get; set; } | |
| public int ratingCount { get; set; } | |
| public int viewCount { get; set; } | |
| public int favoriteCount { get; set; } | |
| public int commentCount { get; set; } | |
| public AccessControl accessControl { get; set; } | |
| } | |
| public class Data | |
| { | |
| public string updated { get; set; } | |
| public int totalItems { get; set; } | |
| public int startIndex { get; set; } | |
| public int itemsPerPage { get; set; } | |
| public List<Item> items { get; set; } | |
| } | |
| public class GetYouTubeUploadsResult | |
| { | |
| public string apiVersion { get; set; } | |
| public Data data { get; set; } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment