C#:

    public class MetadataItem
    {
        public Guid Id;

        public DateTime DateCreated;

        public string Name;

        public MediaTypes Type;

        public string Overview;

        public DateTime DateModified;

        public float? ImdbRating; // optional property

        public string CustomRating;

        public int? ProductionYear; // optional property

        public int? RunningTime; // optional property

        public IEnumerable<string> Genres;

        public string ImdbId; // optional property

        public string TmdbId; // optional property
    }

 

JSON: {
"DateCreated":"\/Date(1272577032357+0100)\/",
"Id":"81558680-e0c0-85c2-c8b4-f99ff8a4e3c",
"Name":"Avatar",
"Type":1, // MediaTypes enum 
"CustomRating":null,
"DateModified":"\/Date(1272583778752+0100)\/",
"Genres":["Hollywood Film","Blockbuster","Science Fiction Film"],
"ImdbRating":8.14,
"Overview":"A band of humans are pitted in a battle against a distant planet's indigenous population...",
"ProductionYear":2009,
"RunningTime":162,
"TmdbId":"19995"
}

Last edited Sep 2, 2010 at 5:51 PM by evorgevol, version 2

Comments

No comments yet.