src/FingersDance.Data/Cutting.cs
changeset 192 11083c390ce4
parent 143 9f157d9c725b
child 229 05aba5def1fc
equal deleted inserted replaced
191:8a25a85f2656 192:11083c390ce4
     5 
     5 
     6 namespace FingersDance.Data
     6 namespace FingersDance.Data
     7 {
     7 {
     8     public class Cutting
     8     public class Cutting
     9     {
     9     {
       
    10         private String _id;
    10         private List<Annotation> _annotList;
    11         private List<Annotation> _annotList;
    11         private string _title;
    12         private string _title;
    12 
    13 
    13         public Cutting(string titlePar, List<Annotation> annotListPar)
    14         public Cutting(String idPar, String titlePar, List<Annotation> annotListPar)
    14         {
    15         {
       
    16             this._id = idPar;
    15             this._title = titlePar;
    17             this._title = titlePar;
    16             this._annotList = annotListPar;
    18             this._annotList = annotListPar;
    17             
       
    18         }
    19         }
    19         public Cutting()
    20         public Cutting()
    20         {}
    21         {}
    21 
    22 
       
    23         public String Id
       
    24         {
       
    25             get { return _id; }
       
    26             set
       
    27             {
       
    28                 if (value == _id || String.IsNullOrEmpty(value))
       
    29                     return;
       
    30                 _id = value;
       
    31             }
       
    32         }
    22         public String Title
    33         public String Title
    23         {
    34         {
    24             get { return _title; }
    35             get { return _title; }
    25             set
    36             set
    26             {
    37             {