/[xmltv_parser]/trunk/libxmltv/Interfaces/Interfaces.cs
ViewVC logotype

Diff of /trunk/libxmltv/Interfaces/Interfaces.cs

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

revision 72 by william, Sat Mar 9 09:29:40 2013 UTC revision 86 by william, Sat Mar 9 13:51:58 2013 UTC
# Line 36  namespace libxmltv.Interfaces Line 36  namespace libxmltv.Interfaces
36          string Name { get; }          string Name { get; }
37          string ToString();          string ToString();
38      }      }
39      public interface IXMLTVProgram  
40        public interface IPropertyDictionary : IPropertyDictionary<string, object>    {    }
41        public interface IPropertyDictionary<TKey,TValue>
42      {      {
43          int Id { get; }          Dictionary<TKey, TValue> Properties { get; }
44          DateTime Start { get; }          TValue GetProperty(TKey name);
45          DateTime Stop { get; }          void SetProperty(TKey name, TValue value);
46          IXMLTVChannel Channel { get; }      }
47          string Title { get; }      public interface IXMLTVProgram : IPropertyDictionary
48          string SubTitle { get; }      {
49          string Description { get; }          //int Id { get; }
50          string ToString();          //DateTime Start { get; }
51            //DateTime Stop { get; }
52            //IXMLTVChannel Channel { get; }
53            //string Title { get; }
54            //string SubTitle { get; }
55            //string Description { get; }
56            //string ToString();
57            
58      }      }
59    
60      public interface IXMLTVProgramCollection : IXMLTVCollection<int, IXMLTVProgram> { }      public interface IXMLTVProgramCollection : IXMLTVDictionaryCollection<string, IXMLTVProgram> { }
61      public interface IXMLTVChannelCollection : IXMLTVCollection<string, IXMLTVChannel> { }      public interface IXMLTVChannelCollection : IXMLTVDictionaryCollection<string, IXMLTVChannel> { }
62      public interface IXMLTVCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }      public interface IXMLTVDictionaryCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }
63        public interface IXMLTVListCollection<TValue> { List<TValue> Collection { get; } }
64    
65        public interface IXMLTVHandler : IXMLTVHandler<object> { }
66        public interface IXMLTVHandler<T> { T Handler { get; } }
67    
68      //public interface IXMLTVBase : IXMLTVBase<object> { }      //public interface IXMLTVBase : IXMLTVBase<object> { }
69      public interface IXMLTVBase<T> : IGetInstance<T> { }      public interface IXMLTVBase<T> : IGetInstance<T>, IXMLTVHandler { }
70      public interface IXMLTVRuntimeInstance : IOnInstanceCreated      public interface IXMLTVRuntimeInstance : IOnInstanceCreated
71      {      {
72          bool IsAborting { get; }          bool IsAborting { get; }
# Line 62  namespace libxmltv.Interfaces Line 75  namespace libxmltv.Interfaces
75          string XmlFile_FullName { get; }          string XmlFile_FullName { get; }
76          string XmlDoc { get; }          string XmlDoc { get; }
77          IXMLTVSource Source { get; }          IXMLTVSource Source { get; }
78          Dictionary<string, IXMLTVChannel> Channels { get; }          List<IXMLTVChannel> Channels { get; }
79          Dictionary<int, IXMLTVProgram> Programs { get; }          List<IXMLTVProgram> Programs { get; }
80                    
81      }      }
82      public interface IXMLTVSerializer : IXMLTVSerializer<object> { }      public interface IXMLTVSerializer : IXMLTVSerializer<object> { }

Legend:
Removed from v.72  
changed lines
  Added in v.86

  ViewVC Help
Powered by ViewVC 1.1.22