1+ namespace LearningHub . Nhs . WebUI . Models
2+ {
3+ using System . Collections . Generic ;
4+
5+ /// <summary>
6+ /// MoodleCourseCompletionViewModel.
7+ /// </summary>
8+ public class MoodleCourseCompletionViewModel
9+ {
10+ /// <summary>
11+ /// Gets or sets the completion status.
12+ /// </summary>
13+ public CompletStatus CompletionStatus { get ; set ; }
14+
15+ /// <summary>
16+ /// Gets or sets the list of warnings.
17+ /// </summary>
18+ public List < object > Warnings { get ; set ; }
19+
20+ /// <summary>
21+ /// CompletionStatus.
22+ /// </summary>
23+ public class CompletStatus
24+ {
25+ /// <summary>
26+ /// Gets or sets a value indicating whether the course is completed.
27+ /// </summary>
28+ public bool Completed { get ; set ; }
29+
30+ /// <summary>
31+ /// Gets or sets the aggregation method.
32+ /// </summary>
33+ public int Aggregation { get ; set ; }
34+
35+ /// <summary>
36+ /// Gets or sets the list of completions.
37+ /// </summary>
38+ public List < Completion > Completions { get ; set ; }
39+
40+ /// <summary>
41+ /// Completion.
42+ /// </summary>
43+ public class Completion
44+ {
45+ /// <summary>
46+ /// Gets or sets the type of completion.
47+ /// </summary>
48+ public int Type { get ; set ; }
49+
50+ /// <summary>
51+ /// Gets or sets the title of the completion requirement.
52+ /// </summary>
53+ public string Title { get ; set ; }
54+
55+ /// <summary>
56+ /// Gets or sets the status of the completion.
57+ /// </summary>
58+ public string Status { get ; set ; }
59+
60+ /// <summary>
61+ /// Gets or sets a value indicating whether the requirement is complete.
62+ /// </summary>
63+ public bool Complete { get ; set ; }
64+
65+ /// <summary>
66+ /// Gets or sets the timestamp when completion was achieved.
67+ /// </summary>
68+ public long ? TimeCompleted { get ; set ; }
69+
70+ /// <summary>
71+ /// Gets or sets the completion details.
72+ /// </summary>
73+ public CompletionDetails Details { get ; set ; }
74+
75+ /// <summary>
76+ /// CompletionDetails.
77+ /// </summary>
78+ public class CompletionDetails
79+ {
80+ /// <summary>
81+ /// Gets or sets the type of completion requirement.
82+ /// </summary>
83+ public string Type { get ; set ; }
84+
85+ /// <summary>
86+ /// Gets or sets the criteria for completion.
87+ /// </summary>
88+ public string Criteria { get ; set ; }
89+
90+ /// <summary>
91+ /// Gets or sets the requirement for completion.
92+ /// </summary>
93+ public string Requirement { get ; set ; }
94+
95+ /// <summary>
96+ /// Gets or sets the status of the requirement.
97+ /// </summary>
98+ public string Status { get ; set ; }
99+ }
100+ }
101+ }
102+ }
103+ }
0 commit comments