|
0
|
1 |
using System; |
|
|
2 |
using System.Net; |
|
|
3 |
using System.Windows; |
|
|
4 |
using System.Windows.Controls; |
|
|
5 |
using System.Windows.Documents; |
|
|
6 |
using System.Windows.Ink; |
|
|
7 |
using System.Windows.Input; |
|
|
8 |
using System.Windows.Media; |
|
|
9 |
using System.Windows.Media.Animation; |
|
|
10 |
using System.Windows.Shapes; |
|
|
11 |
using System.Collections.Generic; |
|
|
12 |
|
|
|
13 |
namespace Iri.Modernisation.Data.Models |
|
|
14 |
{ |
|
|
15 |
/// <summary> |
|
|
16 |
/// Types Polémique |
|
|
17 |
/// </summary> |
|
|
18 |
public enum PolemicElementType |
|
|
19 |
{ |
|
|
20 |
Basic=0, |
|
|
21 |
Polemic=1, |
|
|
22 |
Adhesion, |
|
|
23 |
Reference, |
|
|
24 |
Question |
|
|
25 |
}; |
|
|
26 |
|
|
|
27 |
/// <summary> |
|
|
28 |
/// Classe PolemicElement |
|
|
29 |
/// </summary> |
|
|
30 |
public abstract class PolemicElement : SegmentElement |
|
|
31 |
{ |
|
|
32 |
#region Attributes |
|
|
33 |
/// <summary> |
|
|
34 |
/// Titre de l'élément |
|
|
35 |
/// </summary> |
|
|
36 |
public String Title {get;set;} |
|
|
37 |
/// <summary> |
|
|
38 |
/// Description de l'élément |
|
|
39 |
/// </summary> |
|
|
40 |
public String Description { get; set; } |
|
|
41 |
/// <summary> |
|
|
42 |
/// Tags de l'élément |
|
|
43 |
/// </summary> |
|
|
44 |
public List<String> Tags { get; set; } |
|
|
45 |
/// <summary> |
|
|
46 |
/// VideoChapter auquel l'annotation est ratachée |
|
|
47 |
/// </summary> |
|
|
48 |
public VideoChapter Chapter { get; set; } |
|
|
49 |
|
|
|
50 |
#endregion |
|
|
51 |
/// <summary> |
|
|
52 |
/// Constructeur par défaut |
|
|
53 |
/// </summary> |
|
|
54 |
protected PolemicElement() |
|
|
55 |
{ |
|
|
56 |
Tags = new List<String>(); |
|
|
57 |
} |
|
|
58 |
|
|
|
59 |
/// <summary> |
|
|
60 |
/// Constructeur |
|
|
61 |
/// </summary> |
|
|
62 |
/// <param name="Vc">VideoChapter auquel l'annotation est ratachée</param> |
|
|
63 |
public PolemicElement(VideoChapter Vc):base() |
|
|
64 |
{ |
|
|
65 |
Chapter = Vc; |
|
|
66 |
Tags = new List<string>(); |
|
|
67 |
} |
|
|
68 |
|
|
|
69 |
/// <summary> |
|
|
70 |
/// Constructeur par copie |
|
|
71 |
/// </summary> |
|
|
72 |
/// <param name="copy">Element à copier</param> |
|
|
73 |
public PolemicElement(PolemicElement copy): base(copy) |
|
|
74 |
{ |
|
|
75 |
|
|
|
76 |
this.Title = copy.Title; |
|
|
77 |
this.Description = copy.Description; |
|
|
78 |
this.Tags = new List<String>(copy.Tags); |
|
|
79 |
} |
|
|
80 |
|
|
|
81 |
} |
|
|
82 |
} |