/// <summary>
        /// Erstellt eine alternative Repräsentation einer Quelle.
        /// </summary>
        /// <param name="source">Die volle Beschreibung der Quelle.</param>
        /// <returns>Das Transferformat.</returns>
        public static TReal Create(SourceSelection source)
        {
            // Attach to the station
            var station = (Station)source.Source;

            // Construct
            var info = new TReal
            {
                IsEncrypted = station.IsEncrypted || station.IsService,
                Name        = source.GetUniqueName(),
            };

            // Finish setup
            info.OnCreate(station);

            // Report
            return(info);
        }
Esempio n. 2
0
        /// <summary>
        /// Schließt die Konfiguration einer Beschreibung ab.
        /// </summary>
        /// <param name="server">Der zugehörige Dienst.</param>
        private void Complete(VCRServer server)
        {
            // No source
            if (m_source == null)
            {
                return;
            }

            // At least we have this
            Source = SourceIdentifier.ToString(m_source.Source).Replace(" ", "");

            // Check profile - should normally be available
            var profile = server.Profiles[ProfileName];

            if (profile == null)
            {
                return;
            }

            // Load the profile
            HasGuideEntry = profile.ProgramGuide.HasEntry(m_source.Source, StartTime, StartTime + Duration);
            SourceName    = m_source.GetUniqueName();
        }
Esempio n. 3
0
 /// <summary>
 /// Ermittelt den eindeutigen Namen einer Quelle.
 /// </summary>
 /// <param name="source">Die gew?nschte Quelle.</param>
 /// <returns>Der eindeutige Name oder <i>null</i>, wenn die Quelle nicht
 /// bekannt ist.</returns>
 public string GetUniqueName(SourceSelection source)
 {
     // Forward
     return(source.GetUniqueName());
 }