C#: 

    public class BasicCollectionItem
    {
        public Guid Id;

        public DateTime DateCreated;

        public string Name;

        public MediaTypes Type;

        public IEnumerable<BasicItem> Children;

        public int UnwatchedCount;
    }

 

JSON: {
"DateCreated":"\/Date(1276538867704+0100)\/",
"Id":"bf9202bd-6ad9-eb61-4984-dc6dfd36dcc8",
"Name":"StartupFolder",
"Type":0,  // MediaTypes enum
"Children":[{"DateCreated":"\/Date(1276968321435+0100)\/","Id":"05bc3fda-3660-4e4f-5a83-a4ed9cc9a605","Name":"Local Films","Type":2}], // BasicItem collection
"UnwatchedCount":5
}

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

Comments

No comments yet.