Exemple #1
0
        /// <summary>
        /// Get current playback information
        /// </summary>
        public PlaybackInfo GetPlaybackInfo()
        {
            var response = SendRequest("GET", "/playback-info");

            if (response.StatusCode == (int)HttpStatusCode.OK)
            {
                string content = response.Content.ReadAsString();
                return(PlaybackInfo.CreateFromDictionary(new PropertyList(content)));
            }

            return(null);
        }