コード例 #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
ファイル: AvediaServer.cs プロジェクト: uxav/lib2-devices
        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;
 }