示例#1
0
        /// <summary>
        /// The default Constructor.
        /// </summary>
        internal Receiver(AvediaServer server, JToken data)
        {
#if DEBUG
            CrestronConsole.PrintLine("{0}.ctor()...", GetType());
#endif
            _server = server;
            Id      = data["id"].Value <string>();
            UpdateInfo(data);
            //GetCurrentChannel();
        }
示例#2
0
        /// <summary>
        /// The default Constructor.
        /// </summary>
        internal Channel(AvediaServer server, JToken data)
        {
            _server = server;
            Id      = data["id"].Value <string>();
            _icon   = data["icon"].Value <string>();
            Name    = data["name"].Value <string>();
            Uri     = data["uri"].Value <string>();
            Number  = uint.Parse(data["number"].Value <string>());
#if DEBUG
            CrestronConsole.PrintLine("IPTV Channel Discovered: {0} - {1}, {2}", Number, Name, Uri);
#endif
        }
示例#3
0
        protected virtual void OnHasInitialized(AvediaServer server)
        {
            var handler = HasInitialized;

            try
            {
                if (handler != null)
                {
                    handler(server);
                }
            }
            catch (Exception e)
            {
                CloudLog.Exception(e);
            }
        }
示例#4
0
 /// <summary>
 /// The default Constructor.
 /// </summary>
 internal ChannelCollection(AvediaServer server)
 {
     _server = server;
 }
示例#5
0
 internal ReceiverCollection(AvediaServer server)
 {
     _server = server;
 }