/[xmltv_parser]/branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs
ViewVC logotype

Diff of /branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/09 14:52:10	88
+++ trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/09 14:58:09	89
@@ -328,6 +328,39 @@
             }
         }
         #endregion
+
+        #region sub title
+        private class subtitle : XMLTVBase<XMLTVProgram>
+        {
+            public subtitle() : base(null, XMLTVConstants.Programs.ProgramSubTitle) { }
+            public subtitle(XMLTVProgram instance, XElement node)
+                : base(instance, XMLTVConstants.Programs.ProgramSubTitle)
+            {
+                if (node == null) { throw new NullReferenceException("The node instance was null"); }
+                if (node.Value != null)
+                {
+                    instance.AddProperty(XMLTVConstants.Programs.ProgramSubTitle, node.Value);
+                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_subtitle: {0}", node.Value);
+                }
+            }
+        }
+        #endregion
+        #region sub title
+        private class description : XMLTVBase<XMLTVProgram>
+        {
+            public description() : base(null, XMLTVConstants.Programs.ProgramDescription) { }
+            public description(XMLTVProgram instance, XElement node)
+                : base(instance, XMLTVConstants.Programs.ProgramDescription)
+            {
+                if (node == null) { throw new NullReferenceException("The node instance was null"); }
+                if (node.Value != null)
+                {
+                    instance.AddProperty(XMLTVConstants.Programs.ProgramDescription, node.Value);
+                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_description: {0}", node.Value);
+                }
+            }
+        }
+        #endregion
         #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22