C#:

    public class NowPlayingItem
    {
        public Guid Id;

        public DateTime DateCreated;

        public string Name;

        public MediaTypes Type;

        public string Title;

        public string Elapsed;

        public string TotalTime;

        public PlayState State;
    }

 

JSON: {
"DateCreated":"\/Date(-62135596800000+0000)\/",
"Id":"81558680-e0c0-85c2-c8b4-2f99ff8a4e3c",
"Name":"Avatar",
"Type":0,  // MediaTypes enum
"Elapsed":"00:00:07",
"State":2,  // PlayState enum
"Title":"avatar.2009.1080p.bluray.x264",
"TotalTime":"02:41:41"
}

Last edited Sep 2, 2010 at 4:50 PM by evorgevol, version 3

Comments

No comments yet.