/// <summary>
        /// Log the descriptor fields.
        /// </summary>
        internal void LogMessage()
        {
            if (Logger.ProtocolLogger == null)
            {
                return;
            }

            string nameString;

            if (name != null)
            {
                nameString = name.ToString();
            }
            else
            {
                nameString = "* Not present *";
            }

            Logger.ProtocolLogger.Write(Logger.ProtocolIndent + "PSIP RATING REGION DIMENSION: Name: " + nameString +
                                        " Graduated scale: " + graduatedScale);

            if (values != null)
            {
                Logger.IncrementProtocolIndent();

                foreach (RatingRegionValue value in values)
                {
                    value.LogMessage();
                }

                Logger.DecrementProtocolIndent();
            }
        }
Пример #2
0
        /// <summary>
        /// Log the descriptor fields.
        /// </summary>
        internal void LogMessage()
        {
            if (Logger.ProtocolLogger == null)
            {
                return;
            }

            string descriptionString;

            if (description != null)
            {
                descriptionString = description.ToString();
            }
            else
            {
                descriptionString = "* Not present *";
            }

            Logger.ProtocolLogger.Write(Logger.ProtocolIndent + "PSIP CONTENT ADVISORY RATING REGION: Region: " + region +
                                        " Desc: " + descriptionString);

            if (dimensions != null)
            {
                Logger.IncrementProtocolIndent();

                foreach (ContentAdvisoryRatingDimension dimension in dimensions)
                {
                    dimension.LogMessage();
                }

                Logger.DecrementProtocolIndent();
            }
        }
Пример #3
0
        /// <summary>
        /// Log the descriptor fields.
        /// </summary>
        internal void LogMessage()
        {
            if (Logger.ProtocolLogger == null)
            {
                return;
            }

            string abbreviatedTextString;

            if (abbreviatedText != null)
            {
                abbreviatedTextString = abbreviatedText.ToString();
            }
            else
            {
                abbreviatedTextString = "* Not Present *";
            }

            string fullTextString;

            if (fullText != null)
            {
                fullTextString = fullText.ToString();
            }
            else
            {
                fullTextString = "* Not Present *";
            }

            Logger.ProtocolLogger.Write(Logger.ProtocolIndent + "PSIP RATING REGION VALUE: Abbrev text: " + abbreviatedTextString +
                                        " Full text: " + fullTextString);
        }
Пример #4
0
        /// <summary>
        /// Log the entry fields.
        /// </summary>
        public void LogMessage()
        {
            if (Logger.ProtocolLogger == null)
            {
                return;
            }

            string nameString;

            if (name != null)
            {
                nameString = name.ToString();
            }
            else
            {
                nameString = "* Not present *";
            }

            Logger.ProtocolLogger.Write(Logger.ProtocolIndent + "RATING REGION: Region: " + region +
                                        " Name: " + nameString);

            if (dimensions != null)
            {
                Logger.IncrementProtocolIndent();

                foreach (RatingRegionDimension dimension in dimensions)
                {
                    dimension.LogMessage();
                }

                Logger.DecrementProtocolIndent();
            }

            if (descriptors != null)
            {
                Logger.IncrementProtocolIndent();

                foreach (DescriptorBase descriptor in descriptors)
                {
                    descriptor.LogMessage();
                }

                Logger.DecrementProtocolIndent();
            }
        }
        /// <summary>
        /// Log the descriptor fields.
        /// </summary>
        internal override void LogMessage()
        {
            if (Logger.ProtocolLogger == null)
            {
                return;
            }

            string longNameString;

            if (longName != null)
            {
                longNameString = longName.ToString();
            }
            else
            {
                longNameString = "Not present";
            }

            Logger.ProtocolLogger.Write(Logger.ProtocolIndent + "PSIP EXTENDED CHANNEL NAME DESCRIPTOR: Long name: " + longNameString);
        }