initial commit
[CPE_learningsite] / CPE / CPE.App / CPE.App.Api / Models / TinCanStatementModel.cs
1 using System;
2 using System.Collections.Generic;
3 using Newtonsoft.Json;
4 using Newtonsoft.Json.Linq;
5
6 namespace CPE.App.Api.Models
7 {
8     public partial class TinCanStatementModel
9     {
10         public class Actor2
11         {
12
13             [JsonProperty("name")]
14             public string Name { get; set; }
15
16             [JsonProperty("mbox")]
17             public string Mbox { get; set; }
18         }
19     }
20
21     public partial class TinCanStatementModel
22     {
23         public class Verb2
24         {
25
26             [JsonProperty("id")]
27             public string Id { get; set; }
28         }
29     }
30
31     public partial class TinCanStatementModel
32     {
33         public class Score2
34         {
35             [JsonProperty("scaled")]
36             public int Scaled { get; set; }
37
38             [JsonProperty("raw")]
39             public int Raw { get; set; }
40
41             [JsonProperty("min")]
42             public int Min { get; set; }
43
44             [JsonProperty("max")]
45             public int Max { get; set; }
46         }
47     }
48
49     public partial class TinCanStatementModel
50     {
51
52         public class Result2
53         {
54
55             [JsonProperty("score")]
56             public Score2 Score { get; set; }
57
58             [JsonProperty("success")] // true for verb passed 
59             public bool Success { get; set; }
60
61             [JsonProperty("completion")] 
62             public bool Completion { get; set; } 
63         }
64     }
65
66     public partial class TinCanStatementModel
67     {
68         public class Name3
69         {
70
71             [JsonProperty("en-US")] //using for Cert course name
72             public string EnUs { get; set; }
73         }
74     }
75
76     public partial class TinCanStatementModel
77     {
78         public class Definition3
79         {
80
81             [JsonProperty("name")] //use name.EnUs for Cert course name
82             public Name3 Name { get; set; }
83
84         }
85     }
86
87     public partial class TinCanStatementModel
88     {
89         public class Object2
90         {
91
92             [JsonProperty("id")] //this is url/projectcode-releasecode
93             public string Id { get; set; }
94
95             [JsonProperty("definition")]//.name.enUS is pretty course name for Cert
96             public Definition3 Definition { get; set; }
97         }
98     }
99
100     public partial class TinCanStatementModel
101     {
102
103         [JsonProperty("id")] 
104         public string Id { get; set; }
105
106         [JsonProperty("actor")] //actor.name and actor.mbox make the unique person. 
107         public Actor2 Actor { get; set; }
108
109         [JsonProperty("verb")] // verb.id endswith "/passed" is what we care abt
110         public Verb2 Verb { get; set; }
111
112         [JsonProperty("result")] 
113         public Result2 Result { get; set; }
114
115         [JsonProperty("timestamp")] 
116         public string Timestamp { get; set; }
117
118         [JsonProperty("version")] //leaving this in for future ability to validate the Elucidat hasn't updated to a newer version of tincan
119         public string Version { get; set; }
120
121         [JsonProperty("object")] 
122         public Object2 Object { get; set; }
123     }
124
125 }