/// <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(); }
/// <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 }
protected virtual void OnHasInitialized(AvediaServer server) { var handler = HasInitialized; try { if (handler != null) { handler(server); } } catch (Exception e) { CloudLog.Exception(e); } }
/// <summary> /// The default Constructor. /// </summary> internal ChannelCollection(AvediaServer server) { _server = server; }
internal ReceiverCollection(AvediaServer server) { _server = server; }