/// <summary>
        /// Set current streaming settings
        /// </summary>
        /// <param name="service"></param>
        /// <param name="save"></param>
        public void SetStreamingSettings(StreamingService service, bool save)
        {
            var requestFields = new JObject();

            requestFields.Add("type", service.Type);
            requestFields.Add("settings", service.Settings);
            requestFields.Add("save", save);
            SyncRequest("SetStreamSettings", requestFields);
        }
        /// <summary>
        /// Get current streaming settings
        /// </summary>
        /// <returns></returns>
        public async Task <StreamingService> GetStreamSettings()
        {
            var response = await SendRequest("GetStreamSettings");

            var service = new StreamingService();

            service.Type     = (string)response["type"];
            service.Settings = (JObject)response["settings"];

            return(service);
        }