Add missing files. Add API for client apps.
[wsti_pai.git] / Projects / Models / Metadata.cs
1 using Newtonsoft.Json;
2 using System;
3 using System.Collections.Generic;
4 using System.ComponentModel.DataAnnotations;
5
6 namespace Projects.Models
7 {
8     [JsonObject(IsReference = true)]
9     public class ProjectMetadata
10     {
11         [StringLength(50)]
12         [Display(Name = "Nazwa")]
13         public string name;
14
15         [Display(Name = "Opis")]
16         public string description;
17
18         [Display(Name = "Data utworzenia")]
19         public Nullable<System.DateTime> created_at;
20
21         [Display(Name = "Data edycji")]
22         public Nullable<System.DateTime> updated_at;
23
24         [Display(Name = "Właściciel projektu")]
25         public Nullable<int> user_id;
26     }
27
28     [JsonObject(IsReference = true)]
29     public class ProjectTaskMetadata
30     {
31         [StringLength(50)]
32         [Display(Name = "Nazwa")]
33         public string name;
34
35         [Display(Name = "Opis")]
36         public string description;
37
38         [Display(Name = "Data utworzenia")]
39         public Nullable<System.DateTime> created_at;
40
41         [Display(Name = "Data edycji")]
42         public Nullable<System.DateTime> updated_at;
43
44         [Display(Name = "Właściciel zadania")]
45         public Nullable<int> user_id;
46     }
47
48     [JsonObject(IsReference = true)]
49     public class UserMetadata
50     {
51         [Display(Name = "Nazwa użytkownika")]
52         public string login;
53
54         [Display(Name = "Hasło")]
55         public string password;
56     }
57
58     [JsonObject(IsReference = true)]
59     public class TaskStatusMetadata
60     {
61         [Display(Name = "Status")]
62         public string status;
63     }
64
65
66 }