/[xmltv_parser]/trunk/libxmltv/Core/XMLTVConstants.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVConstants.cs

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

--- trunk/libxmltv/Core/XMLTV_CONSTANTS.cs	2013/03/07 12:11:41	27
+++ trunk/libxmltv/Core/XMLTVConstants.cs	2013/03/09 14:52:10	88
@@ -5,11 +5,14 @@
 
 namespace libxmltv.Core
 {
-    public static class XMLTV_CONSTANTS
+    public static class XMLTVConstants
     {
-        public const string ROOT_ELEMENT = "tv";
-        public const string CHANNEL_ELEMENT = "channel";
-        public const string PROGRAM_ELEMENT = "programme";
+        #region Root Constants
+        public static class Root
+        {
+            public const string RootElement = "tv";
+        }
+        #endregion
 
         #region Source Constants
         public static class Source
@@ -22,6 +25,7 @@
         #region Channel Constants
         public static class Channels
         {
+            public const string RootElement = "channel";
             public const string ChannelId = "id";
             public const string ChannelDisplayName = "display-name";
         }
@@ -29,8 +33,26 @@
         #region Program Constants
         public static class Programs
         {
+            public const string RootElement = "programme";
             public const string ProgramStart = "start";
+            public const string ProgramStop = "stop";
+            public const string ProgramChannelId = XMLTVConstants.Channels.RootElement;
+            public const string ProgramTitle = "title";
+            public const string ProgramSubTitle = "sub-title";
+            public const string ProgramDescription = "desc";
+
+            #region extra meta-data
+            public const string ProgramCredits = "credits";
+            public const string ProgramDirector = "director";
+            public const string ProgramActor = "actor";
+            public const string ProgramDate = "date";
+            public const string ProgramCategory = "category";
+            public const string ProgramEpisodeNum = "episode-num";
+            public const string ProgramPreviouslyShown = "previously-shown";
+            #endregion
         }
         #endregion
     }
-}
\ No newline at end of file
+}
+
+

 

  ViewVC Help
Powered by ViewVC 1.1.22