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

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

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

revision 26 by william, Thu Mar 7 11:58:34 2013 UTC revision 27 by william, Thu Mar 7 12:11:41 2013 UTC
# Line 45  namespace libxmltv.Core Line 45  namespace libxmltv.Core
45          }          }
46      }      }
47    
48      public class Channel : IXMLTVChannel      internal class Channel : IXMLTVChannel
49      {      {
50          public Channel()          public Channel()
51          {          {
# Line 54  namespace libxmltv.Core Line 54  namespace libxmltv.Core
54              ChannelCallSign = string.Empty;              ChannelCallSign = string.Empty;
55              ChannelName = string.Empty;              ChannelName = string.Empty;
56          }          }
57          public Channel(XElement e) : this()          public Channel(XElement e)
58                : this()
59          {          {
60              // get the channel id              // get the channel id
61              ChannelId = e.Attribute(XMLTV_CONSTANTS.Channels.ChannelId).Value;                        ChannelId = e.Attribute(XMLTV_CONSTANTS.Channels.ChannelId).Value;
62              var names = e.Descendants(XMLTV_CONSTANTS.Channels.ChannelDisplayName).ToList();              var names = e.Descendants(XMLTV_CONSTANTS.Channels.ChannelDisplayName).ToList();
63              ChannelNumber = Convert.ToInt32(names[1].Value);              ChannelNumber = Convert.ToInt32(names[1].Value);
64              ChannelCallSign = names[2].Value;              ChannelCallSign = names[2].Value;

Legend:
Removed from v.26  
changed lines
  Added in v.27

  ViewVC Help
Powered by ViewVC 1.1.22