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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (show annotations) (download)
Sat Mar 9 10:27:39 2013 UTC (6 years, 8 months ago) by william
Original Path: trunk/libxmltv/Core/XMLTVProgram.cs
File size: 1177 byte(s)

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using libxmltv.Interfaces;
6
7 namespace libxmltv.Core
8 {
9 [Serializable]
10 internal class XMLTVProgram : IXMLTVProgram
11 {
12 public XMLTVProgram()
13 {
14 Id = 0;
15 Start = new DateTime();
16 Stop = new DateTime();
17 Channel = new XMLTVChannel();
18 Title = string.Empty;
19 SubTitle = string.Empty;
20 Description = string.Empty;
21 }
22 #region IXMLTVProgram members
23 public int Id { get; set; }
24 public DateTime Start { get; set; }
25 public DateTime Stop { get; set; }
26 public IXMLTVChannel Channel { get; set; }
27 public string Title { get; set; }
28 public string SubTitle { get; set; }
29 public string Description { get; set; }
30 #endregion
31 public override string ToString()
32 {
33 return string.Format("{0}: {1} - {2} ({3}) ['{4}' <==> '{5}']", Id, Title, SubTitle, Channel.ToString(), Start.ToString("yyyy/MM/dd hh:mm tt"), Stop.ToString("yyyy/MM/dd hh:mm tt"));
34 }
35 }
36 }

  ViewVC Help
Powered by ViewVC 1.1.22