diff -r 000000000000 -r 249d70e7b32d client/src/Iri.Modernisation.Data/Models/PolemicElement.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/Iri.Modernisation.Data/Models/PolemicElement.cs Wed Nov 18 15:30:31 2009 +0100 @@ -0,0 +1,82 @@ +using System; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Shapes; +using System.Collections.Generic; + +namespace Iri.Modernisation.Data.Models +{ + /// + /// Types Polémique + /// + public enum PolemicElementType + { + Basic=0, + Polemic=1, + Adhesion, + Reference, + Question + }; + + /// + /// Classe PolemicElement + /// + public abstract class PolemicElement : SegmentElement + { + #region Attributes + /// + /// Titre de l'élément + /// + public String Title {get;set;} + /// + /// Description de l'élément + /// + public String Description { get; set; } + /// + /// Tags de l'élément + /// + public List Tags { get; set; } + /// + /// VideoChapter auquel l'annotation est ratachée + /// + public VideoChapter Chapter { get; set; } + + #endregion + /// + /// Constructeur par défaut + /// + protected PolemicElement() + { + Tags = new List(); + } + + /// + /// Constructeur + /// + /// VideoChapter auquel l'annotation est ratachée + public PolemicElement(VideoChapter Vc):base() + { + Chapter = Vc; + Tags = new List(); + } + + /// + /// Constructeur par copie + /// + /// Element à copier + public PolemicElement(PolemicElement copy): base(copy) + { + + this.Title = copy.Title; + this.Description = copy.Description; + this.Tags = new List(copy.Tags); + } + + } +}