コード例 #1
0
 /// <summary>
 /// Serializes information the current object
 /// <param name="writer">Serialization writer to use to serialize this model</param>
 /// </summary>
 public void Serialize(ISerializationWriter writer)
 {
     _ = writer ?? throw new ArgumentNullException(nameof(writer));
     writer.WriteStringValue("displayName", DisplayName);
     writer.WriteDateValue("endDate", EndDate);
     writer.WriteStringValue("externalId", ExternalId);
     writer.WriteDateValue("startDate", StartDate);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #2
0
 /// <summary>
 /// Serializes information the current object
 /// <param name="writer">Serialization writer to use to serialize this model</param>
 /// </summary>
 public void Serialize(ISerializationWriter writer)
 {
     _ = writer ?? throw new ArgumentNullException(nameof(writer));
     writer.WriteDateValue("endDate", EndDate);
     writer.WriteIntValue("numberOfOccurrences", NumberOfOccurrences);
     writer.WriteStringValue("recurrenceTimeZone", RecurrenceTimeZone);
     writer.WriteDateValue("startDate", StartDate);
     writer.WriteEnumValue <RecurrenceRangeType>("type", Type);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #3
0
 /// <summary>
 /// Serializes information the current object
 /// <param name="writer">Serialization writer to use to serialize this model</param>
 /// </summary>
 public new void Serialize(ISerializationWriter writer)
 {
     _ = writer ?? throw new ArgumentNullException(nameof(writer));
     base.Serialize(writer);
     writer.WriteLongValue("completedBlackAndWhiteJobCount", CompletedBlackAndWhiteJobCount);
     writer.WriteLongValue("completedColorJobCount", CompletedColorJobCount);
     writer.WriteLongValue("incompleteJobCount", IncompleteJobCount);
     writer.WriteDateValue("usageDate", UsageDate);
 }
コード例 #4
0
 /// <summary>
 /// Serializes information the current object
 /// <param name="writer">Serialization writer to use to serialize this model</param>
 /// </summary>
 public void Serialize(ISerializationWriter writer)
 {
     _ = writer ?? throw new ArgumentNullException(nameof(writer));
     writer.WriteDateValue("birthDate", BirthDate);
     writer.WriteStringValue("externalId", ExternalId);
     writer.WriteEnumValue <EducationGender>("gender", Gender);
     writer.WriteStringValue("grade", Grade);
     writer.WriteStringValue("graduationYear", GraduationYear);
     writer.WriteStringValue("studentNumber", StudentNumber);
     writer.WriteAdditionalData(AdditionalData);
 }