OpenSource » SampleCode » NexPortWebApiClient
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Additional model fixes

Changeset b70e0d30bef1

Parent cd0c1c55fe12

by Profile picture of Thai NguyenThai Nguyen

Changes to 3 files · Browse files at b70e0d30bef1 Showing diff from parent cd0c1c55fe12 Diff from another changeset...

 
173
174
175
176
 
177
178
179
180
181
182
183
 
184
185
186
 
229
230
231
232
 
233
234
235
236
237
238
239
 
240
241
242
 
173
174
175
 
176
177
178
179
180
181
182
 
183
184
185
186
 
229
230
231
 
232
233
234
235
236
237
238
 
239
240
241
242
@@ -173,14 +173,14 @@
  /// Should groups auto-enroll new members into this section?   /// </summary>   /// <value>Should groups auto-enroll new members into this section?</value> - [DataMember(Name = "auto_enroll_new_members", EmitDefaultValue = false)] + [DataMember(Name = "auto_enroll_new_members", EmitDefaultValue = true)]   public bool? AutoEnrollNewMembers { get; set; }     /// <summary>   /// Use EnrollmentDuration in calculating course end date   /// </summary>   /// <value>Use EnrollmentDuration in calculating course end date</value> - [DataMember(Name = "end_after_period_from_enrollment_start", EmitDefaultValue = false)] + [DataMember(Name = "end_after_period_from_enrollment_start", EmitDefaultValue = true)]   public bool? EndAfterPeriodFromEnrollmentStart { get; set; }     /// <summary> @@ -229,14 +229,14 @@
  /// This controls whether or not the student can enroll themselves from the catalog view. Administrators should still be able to enroll a student AND the student should still be able to purchase in the Marketplace if it&#39;s available for enrollment Don&#39;t use this in the model.   /// </summary>   /// <value>This controls whether or not the student can enroll themselves from the catalog view. Administrators should still be able to enroll a student AND the student should still be able to purchase in the Marketplace if it&#39;s available for enrollment Don&#39;t use this in the model.</value> - [DataMember(Name = "disable_manual_enrollment", EmitDefaultValue = false)] + [DataMember(Name = "disable_manual_enrollment", EmitDefaultValue = true)]   public bool? DisableManualEnrollment { get; set; }     /// <summary>   /// How many credit hours this syllabus is worth.   /// </summary>   /// <value>How many credit hours this syllabus is worth.</value> - [DataMember(Name = "credit_hours", EmitDefaultValue = false)] + [DataMember(Name = "credit_hours", EmitDefaultValue = true)]   public decimal? CreditHours { get; set; }     /// <summary>
 
96
97
98
99
 
100
101
102
 
138
139
140
141
 
142
143
144
145
146
147
148
 
149
150
151
 
166
167
168
169
 
170
171
172
173
174
175
176
 
177
178
179
 
194
195
196
197
 
198
199
200
201
202
203
204
 
205
206
207
 
96
97
98
 
99
100
101
102
 
138
139
140
 
141
142
143
144
145
146
147
 
148
149
150
151
 
166
167
168
 
169
170
171
172
173
174
175
 
176
177
178
179
 
194
195
196
 
197
198
199
200
201
202
203
 
204
205
206
207
@@ -96,7 +96,7 @@
  LastActivityDate = lastActivityDate;     // to ensure "apiErrorEntity" is required (not null) - ApiErrorEntity = apiErrorEntity ?? throw new ArgumentNullException(nameof(ApiErrorEntity), "apiErrorEntity is a required property for TrainingPlanEnrollmentsResponse and cannot be null"); + ApiErrorEntity = apiErrorEntity ?? throw new ArgumentNullException(nameof(ApiErrorEntity), "apiErrorEntity is a required property for TrainingPlanEnrollmentsResponse and cannot be null");   }     /// <summary> @@ -138,14 +138,14 @@
  /// The Average Score of this enrollment   /// </summary>   /// <value>The Average Score of this enrollment</value> - [DataMember(Name = "average_score", EmitDefaultValue = false)] + [DataMember(Name = "average_score", EmitDefaultValue = true)]   public decimal? AverageScore { get; set; }     /// <summary>   /// The Grade Point Average (GPA) of this enrollment   /// </summary>   /// <value>The Grade Point Average (GPA) of this enrollment</value> - [DataMember(Name = "grade_point_average", EmitDefaultValue = false)] + [DataMember(Name = "grade_point_average", EmitDefaultValue = true)]   public decimal? GradePointAverage { get; set; }     /// <summary> @@ -166,14 +166,14 @@
  /// When this enrollment expires (UTC)   /// </summary>   /// <value>When this enrollment expires (UTC)</value> - [DataMember(Name = "expiration_date", EmitDefaultValue = false)] + [DataMember(Name = "expiration_date", EmitDefaultValue = true)]   public DateTime? ExpirationDate { get; set; }     /// <summary>   /// When this enrollment was completed by the student (UTC)   /// </summary>   /// <value>When this enrollment was completed by the student (UTC)</value> - [DataMember(Name = "completion_date", EmitDefaultValue = false)] + [DataMember(Name = "completion_date", EmitDefaultValue = true)]   public DateTime? CompletionDate { get; set; }     /// <summary> @@ -194,14 +194,14 @@
  /// When this enrollment was first accessed (UTC)   /// </summary>   /// <value>When this enrollment was first accessed (UTC)</value> - [DataMember(Name = "first_activity_date", EmitDefaultValue = false)] + [DataMember(Name = "first_activity_date", EmitDefaultValue = true)]   public DateTime? FirstActivityDate { get; set; }     /// <summary>   /// When this enrollment was last accessed (UTC)   /// </summary>   /// <value>When this enrollment was last accessed (UTC)</value> - [DataMember(Name = "last_activity_date", EmitDefaultValue = false)] + [DataMember(Name = "last_activity_date", EmitDefaultValue = true)]   public DateTime? LastActivityDate { get; set; }     /// <summary>
 
174
175
176
177
 
178
179
180
 
188
189
190
191
 
192
193
194
195
196
197
198
 
199
200
201
202
203
204
205
 
206
207
208
209
210
211
212
 
213
214
215
216
217
218
219
 
220
221
222
 
230
231
232
233
 
234
235
236
 
174
175
176
 
177
178
179
180
 
188
189
190
 
191
192
193
194
195
196
197
 
198
199
200
201
202
203
204
 
205
206
207
208
209
210
211
 
212
213
214
215
216
217
218
 
219
220
221
222
 
230
231
232
 
233
234
235
236
@@ -174,7 +174,7 @@
  /// Use EnrollmentDuration in calculating course end date   /// </summary>   /// <value>Use EnrollmentDuration in calculating course end date</value> - [DataMember(Name = "end_after_period_from_enrollment_start", EmitDefaultValue = false)] + [DataMember(Name = "end_after_period_from_enrollment_start", EmitDefaultValue = true)]   public bool? EndAfterPeriodFromEnrollmentStart { get; set; }     /// <summary> @@ -188,35 +188,35 @@
  /// The first day that the student can be enrolled into this section   /// </summary>   /// <value>The first day that the student can be enrolled into this section</value> - [DataMember(Name = "enrollment_start", EmitDefaultValue = false)] + [DataMember(Name = "enrollment_start", EmitDefaultValue = true)]   public DateTime? EnrollmentStart { get; set; }     /// <summary>   /// The last day that the student can be enrolled into this section   /// </summary>   /// <value>The last day that the student can be enrolled into this section</value> - [DataMember(Name = "enrollment_end", EmitDefaultValue = false)] + [DataMember(Name = "enrollment_end", EmitDefaultValue = true)]   public DateTime? EnrollmentEnd { get; set; }     /// <summary>   /// The last day that the student can drop this section   /// </summary>   /// <value>The last day that the student can drop this section</value> - [DataMember(Name = "final_drop_date", EmitDefaultValue = false)] + [DataMember(Name = "final_drop_date", EmitDefaultValue = true)]   public DateTime? FinalDropDate { get; set; }     /// <summary>   /// When the section opens for launching.   /// </summary>   /// <value>When the section opens for launching.</value> - [DataMember(Name = "training_start", EmitDefaultValue = false)] + [DataMember(Name = "training_start", EmitDefaultValue = true)]   public DateTime? TrainingStart { get; set; }     /// <summary>   /// When the section closes.   /// </summary>   /// <value>When the section closes.</value> - [DataMember(Name = "training_end", EmitDefaultValue = false)] + [DataMember(Name = "training_end", EmitDefaultValue = true)]   public DateTime? TrainingEnd { get; set; }     /// <summary> @@ -230,7 +230,7 @@
  /// How many credit hours this syllabus is worth.   /// </summary>   /// <value>How many credit hours this syllabus is worth.</value> - [DataMember(Name = "credit_hours", EmitDefaultValue = false)] + [DataMember(Name = "credit_hours", EmitDefaultValue = true)]   public decimal? CreditHours { get; set; }     /// <summary>