Esempio n. 1
0
        /// <summary>
        /// Constructor -- sets configuration entries
        /// </summary>
        public RealRadiosPlugin() : base()
        {
            use_proxy = UseProxyEntry.Get().Equals("True") ? true : false;

            if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds))
            {
                http_timeout_seconds = 20;
            }
            proxy_url = ProxyUrlEntry.Get();
            SetWebIcon(base_url + "sites/default/files/favicon_0.ico");
        }
        /// <summary>
        /// Constructor -- sets configuration entries
        /// </summary>
        public MagnatunePlugin() : base()
        {
            use_proxy = UseProxyEntry.Get().Equals("True") ? true : false;

            if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds))
            {
                http_timeout_seconds = 20;
            }
            proxy_url = ProxyUrlEntry.Get();
            SetWebIcon("http://my.magnatune.com/favicon.ico");
        }
Esempio n. 3
0
        /// <summary>
        /// Constructor -- sets configuration entries
        /// </summary>
        public XiphOrgPlugin() : base()
        {
            use_proxy = UseProxyEntry.Get().Equals("True") ? true : false;

            if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds))
            {
                http_timeout_seconds = 20;
            }
            proxy_url = ProxyUrlEntry.Get();
            SetWebIcon("http://www.xiph.org/favicon.ico");
        }
        /// <summary>
        /// Constructor -- sets configuration entries
        /// </summary>
        public ShoutCastPlugin() : base()
        {
            use_proxy = UseProxyEntry.Get().Equals("True") ? true : false;

            if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds))
            {
                http_timeout_seconds = 20;
            }
            proxy_url = ProxyUrlEntry.Get();
            SetWebIcon("http://o.aolcdn.com/shoutcast/images/sc_favicon.ico");
        }
Esempio n. 5
0
        /// <summary>
        /// Constructor -- invokes the base constructor with has_login=true for handling user credentials.
        /// Sets configured Properties
        /// </summary>
        public Live365Plugin() : base(true)
        {
            use_proxy       = UseProxyEntry.Get().Equals("True") ? true : false;
            use_credentials = UseCredentialsEntry.Get().Equals("True") ? true : false;

            if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds))
            {
                http_timeout_seconds = 20;
            }
            credentials_username = HttpUsernameEntry.Get();
            credentials_password = HttpPasswordEntry.Get();
            proxy_url            = ProxyUrlEntry.Get();
            SetWebIcon("http://www.live365.com/favicon.ico");
        }