ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTVChannelCollection.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTVChannel.cs (file contents):
Revision 26 by william, Thu Mar 7 11:58:34 2013 UTC vs.
Revision 27 by william, Thu Mar 7 12:11:41 2013 UTC

# Line 45 | Line 45 | namespace libxmltv.Core
45          }
46      }
47  
48 <    public class Channel : IXMLTVChannel
48 >    internal class Channel : IXMLTVChannel
49      {
50          public Channel()
51          {
# Line 54 | Line 54 | namespace libxmltv.Core
54              ChannelCallSign = string.Empty;
55              ChannelName = string.Empty;
56          }
57 <        public Channel(XElement e) : this()
57 >        public Channel(XElement e)
58 >            : this()
59          {
60              // get the channel id
61 <            ChannelId = e.Attribute(XMLTV_CONSTANTS.Channels.ChannelId).Value;          
61 >            ChannelId = e.Attribute(XMLTV_CONSTANTS.Channels.ChannelId).Value;
62              var names = e.Descendants(XMLTV_CONSTANTS.Channels.ChannelDisplayName).ToList();
63              ChannelNumber = Convert.ToInt32(names[1].Value);
64              ChannelCallSign = names[2].Value;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines