| author | totetm <> |
| Fri, 12 Feb 2010 11:53:02 +0100 | |
| changeset 43 | 7fa99f1c36a4 |
| parent 38 | bd33267300aa |
| permissions | -rw-r--r-- |
| 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 |
{ |
|
| 36 | 15 |
|
| 0 | 16 |
|
17 |
/// <summary> |
|
18 |
/// Classe PolemicElement |
|
19 |
/// </summary> |
|
20 |
public abstract class PolemicElement : SegmentElement |
|
21 |
{ |
|
22 |
#region Attributes |
|
23 |
/// <summary> |
|
| 34 | 24 |
/// Id de l'élément |
25 |
/// </summary> |
|
26 |
public String Id { get; set; } |
|
27 |
||
28 |
/// <summary> |
|
| 0 | 29 |
/// Titre de l'élément |
30 |
/// </summary> |
|
31 |
public String Title {get;set;} |
|
32 |
/// <summary> |
|
33 |
/// Description de l'élément |
|
34 |
/// </summary> |
|
35 |
public String Description { get; set; } |
|
36 |
/// <summary> |
|
37 |
/// Tags de l'élément |
|
38 |
/// </summary> |
|
39 |
public List<String> Tags { get; set; } |
|
40 |
/// <summary> |
|
41 |
/// VideoChapter auquel l'annotation est ratachée |
|
42 |
/// </summary> |
|
43 |
public VideoChapter Chapter { get; set; } |
|
44 |
|
|
45 |
#endregion |
|
| 34 | 46 |
|
47 |
|
|
48 |
||
| 0 | 49 |
/// <summary> |
50 |
/// Constructeur par défaut |
|
51 |
/// </summary> |
|
52 |
protected PolemicElement() |
|
53 |
{ |
|
| 38 | 54 |
Id = System.Guid.NewGuid().ToString(); |
| 0 | 55 |
Tags = new List<String>(); |
56 |
} |
|
57 |
||
58 |
/// <summary> |
|
59 |
/// Constructeur |
|
60 |
/// </summary> |
|
61 |
/// <param name="Vc">VideoChapter auquel l'annotation est ratachée</param> |
|
62 |
public PolemicElement(VideoChapter Vc):base() |
|
63 |
{ |
|
| 38 | 64 |
Id = System.Guid.NewGuid().ToString(); |
| 0 | 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 |
{ |
|
|
43
7fa99f1c36a4
Fixed | pb d'affichage dans la liste des annotations (rafraichissement +
totetm <>
parents:
38
diff
changeset
|
75 |
this.Id = copy.Id; |
| 0 | 76 |
this.Title = copy.Title; |
77 |
this.Description = copy.Description; |
|
78 |
this.Tags = new List<String>(copy.Tags); |
|
79 |
} |
|
80 |
||
81 |
} |
|
82 |
} |