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

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

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

--- trunk/libxmltv/Core/XMLTVChannel.cs	2013/03/09 12:37:21	82
+++ trunk/libxmltv/Core/XMLTVChannel.cs	2013/03/09 12:41:07	83
@@ -13,7 +13,8 @@
     [Serializable]
     internal class XMLTVChannel : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVChannel
     {
-        public XMLTVChannel() : base(null,XMLTVConstants.CHANNEL_ELEMENT)
+        public XMLTVChannel()
+            : base(null, XMLTVConstants.CHANNEL_ELEMENT)
         {
             Id = string.Empty;
             Number = 0;
@@ -54,7 +55,7 @@
                 {
                     found_field = true;
                     try
-                    {                                                
+                    {
                         var list = (List<IXMLTVChannel>)field.GetValue(this.GetInstance());
                         list.Add(this);
                         xmltv_logger.Verbose.Debug.WriteLine("Updating instance with channel information: {0}", this.ToString());
@@ -75,17 +76,17 @@
         }
 
         private void Create(XElement node)
-        {          
-                // get the channel id
-                Id = node.Attribute(XMLTVConstants.Channels.ChannelId).Value;
-                xmltv_logger.Verbose.Debug.WriteLine("\tchannel_id: {0}", Id);
-                var names = node.Descendants(XMLTVConstants.Channels.ChannelDisplayName).ToList();
-                Number = Convert.ToInt32(names[1].Value);
-                xmltv_logger.Verbose.Debug.WriteLine("\tchannel_number: {0}", Number);
-                CallSign = names[2].Value;
-                xmltv_logger.Verbose.Debug.WriteLine("\tchannel_callsign: {0}", CallSign);
-                Name = names[3].Value;
-                xmltv_logger.Verbose.Debug.WriteLine("\tchannel_name: {0}", Name);          
+        {
+            // get the channel id
+            Id = node.Attribute(XMLTVConstants.Channels.ChannelId).Value;
+            xmltv_logger.Verbose.Debug.WriteLine("\tchannel_id: {0}", Id);
+            var names = node.Descendants(XMLTVConstants.Channels.ChannelDisplayName).ToList();
+            Number = Convert.ToInt32(names[1].Value);
+            xmltv_logger.Verbose.Debug.WriteLine("\tchannel_number: {0}", Number);
+            CallSign = names[2].Value;
+            xmltv_logger.Verbose.Debug.WriteLine("\tchannel_callsign: {0}", CallSign);
+            Name = names[3].Value;
+            xmltv_logger.Verbose.Debug.WriteLine("\tchannel_name: {0}", Name);
         }
     }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22