コード例 #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.WriteCollectionOfEnumValues <ConditionalAccessDevicePlatform>("excludePlatforms", ExcludePlatforms);
     writer.WriteCollectionOfEnumValues <ConditionalAccessDevicePlatform>("includePlatforms", IncludePlatforms);
     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.WriteCollectionOfPrimitiveValues <int?>("bottomMargins", BottomMargins);
     writer.WriteBoolValue("collation", Collation);
     writer.WriteCollectionOfEnumValues <PrintColorMode>("colorModes", ColorModes);
     writer.WriteCollectionOfPrimitiveValues <string>("contentTypes", ContentTypes);
     writer.WriteObjectValue <IntegerRange>("copiesPerJob", CopiesPerJob);
     writer.WriteCollectionOfPrimitiveValues <int?>("dpis", Dpis);
     writer.WriteCollectionOfEnumValues <PrintDuplexMode>("duplexModes", DuplexModes);
     writer.WriteCollectionOfEnumValues <PrinterFeedOrientation>("feedOrientations", FeedOrientations);
     writer.WriteCollectionOfEnumValues <PrintFinishing>("finishings", Finishings);
     writer.WriteCollectionOfPrimitiveValues <string>("inputBins", InputBins);
     writer.WriteBoolValue("isColorPrintingSupported", IsColorPrintingSupported);
     writer.WriteBoolValue("isPageRangeSupported", IsPageRangeSupported);
     writer.WriteCollectionOfPrimitiveValues <int?>("leftMargins", LeftMargins);
     writer.WriteCollectionOfPrimitiveValues <string>("mediaColors", MediaColors);
     writer.WriteCollectionOfPrimitiveValues <string>("mediaSizes", MediaSizes);
     writer.WriteCollectionOfPrimitiveValues <string>("mediaTypes", MediaTypes);
     writer.WriteCollectionOfEnumValues <PrintMultipageLayout>("multipageLayouts", MultipageLayouts);
     writer.WriteCollectionOfEnumValues <PrintOrientation>("orientations", Orientations);
     writer.WriteCollectionOfPrimitiveValues <string>("outputBins", OutputBins);
     writer.WriteCollectionOfPrimitiveValues <int?>("pagesPerSheet", PagesPerSheet);
     writer.WriteCollectionOfEnumValues <PrintQuality>("qualities", Qualities);
     writer.WriteCollectionOfPrimitiveValues <int?>("rightMargins", RightMargins);
     writer.WriteCollectionOfEnumValues <PrintScaling>("scalings", Scalings);
     writer.WriteBoolValue("supportsFitPdfToPage", SupportsFitPdfToPage);
     writer.WriteCollectionOfPrimitiveValues <int?>("topMargins", TopMargins);
     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 void Serialize(ISerializationWriter writer)
 {
     _ = writer ?? throw new ArgumentNullException(nameof(writer));
     writer.WriteObjectValue <ConditionalAccessApplications>("applications", Applications);
     writer.WriteObjectValue <ConditionalAccessClientApplications>("clientApplications", ClientApplications);
     writer.WriteCollectionOfEnumValues <ConditionalAccessClientApp>("clientAppTypes", ClientAppTypes);
     writer.WriteObjectValue <ConditionalAccessDevices>("devices", Devices);
     writer.WriteObjectValue <ConditionalAccessLocations>("locations", Locations);
     writer.WriteObjectValue <ConditionalAccessPlatforms>("platforms", Platforms);
     writer.WriteCollectionOfEnumValues <RiskLevel>("signInRiskLevels", SignInRiskLevels);
     writer.WriteCollectionOfEnumValues <RiskLevel>("userRiskLevels", UserRiskLevels);
     writer.WriteObjectValue <ConditionalAccessUsers>("users", Users);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #4
0
ファイル: SignIn.cs プロジェクト: microsoftgraph/msgraph-cli
 /// <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.WriteStringValue("appDisplayName", AppDisplayName);
     writer.WriteStringValue("appId", AppId);
     writer.WriteCollectionOfObjectValues <AppliedConditionalAccessPolicy>("appliedConditionalAccessPolicies", AppliedConditionalAccessPolicies);
     writer.WriteStringValue("clientAppUsed", ClientAppUsed);
     writer.WriteEnumValue <ConditionalAccessStatus>("conditionalAccessStatus", ConditionalAccessStatus);
     writer.WriteStringValue("correlationId", CorrelationId);
     writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
     writer.WriteObjectValue <ApiSdk.Models.DeviceDetail>("deviceDetail", DeviceDetail);
     writer.WriteStringValue("ipAddress", IpAddress);
     writer.WriteBoolValue("isInteractive", IsInteractive);
     writer.WriteObjectValue <SignInLocation>("location", Location);
     writer.WriteStringValue("resourceDisplayName", ResourceDisplayName);
     writer.WriteStringValue("resourceId", ResourceId);
     writer.WriteEnumValue <RiskDetail>("riskDetail", RiskDetail);
     writer.WriteCollectionOfEnumValues <RiskEventType>("riskEventTypes", RiskEventTypes);
     writer.WriteCollectionOfPrimitiveValues <string>("riskEventTypes_v2", RiskEventTypes_v2);
     writer.WriteEnumValue <RiskLevel>("riskLevelAggregated", RiskLevelAggregated);
     writer.WriteEnumValue <RiskLevel>("riskLevelDuringSignIn", RiskLevelDuringSignIn);
     writer.WriteEnumValue <RiskState>("riskState", RiskState);
     writer.WriteObjectValue <SignInStatus>("status", Status);
     writer.WriteStringValue("userDisplayName", UserDisplayName);
     writer.WriteStringValue("userId", UserId);
     writer.WriteStringValue("userPrincipalName", UserPrincipalName);
 }
コード例 #5
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.WriteCollectionOfEnumValues <ManagedAppDataStorageLocation>("allowedDataStorageLocations", AllowedDataStorageLocations);
     writer.WriteEnumValue <ManagedAppDataTransferLevel>("allowedInboundDataTransferSources", AllowedInboundDataTransferSources);
     writer.WriteEnumValue <ManagedAppClipboardSharingLevel>("allowedOutboundClipboardSharingLevel", AllowedOutboundClipboardSharingLevel);
     writer.WriteEnumValue <ManagedAppDataTransferLevel>("allowedOutboundDataTransferDestinations", AllowedOutboundDataTransferDestinations);
     writer.WriteBoolValue("contactSyncBlocked", ContactSyncBlocked);
     writer.WriteBoolValue("dataBackupBlocked", DataBackupBlocked);
     writer.WriteBoolValue("deviceComplianceRequired", DeviceComplianceRequired);
     writer.WriteBoolValue("disableAppPinIfDevicePinIsSet", DisableAppPinIfDevicePinIsSet);
     writer.WriteBoolValue("fingerprintBlocked", FingerprintBlocked);
     writer.WriteEnumValue <ManagedBrowserType>("managedBrowser", ManagedBrowser);
     writer.WriteBoolValue("managedBrowserToOpenLinksRequired", ManagedBrowserToOpenLinksRequired);
     writer.WriteIntValue("maximumPinRetries", MaximumPinRetries);
     writer.WriteIntValue("minimumPinLength", MinimumPinLength);
     writer.WriteStringValue("minimumRequiredAppVersion", MinimumRequiredAppVersion);
     writer.WriteStringValue("minimumRequiredOsVersion", MinimumRequiredOsVersion);
     writer.WriteStringValue("minimumWarningAppVersion", MinimumWarningAppVersion);
     writer.WriteStringValue("minimumWarningOsVersion", MinimumWarningOsVersion);
     writer.WriteBoolValue("organizationalCredentialsRequired", OrganizationalCredentialsRequired);
     writer.WriteTimeSpanValue("periodBeforePinReset", PeriodBeforePinReset);
     writer.WriteTimeSpanValue("periodOfflineBeforeAccessCheck", PeriodOfflineBeforeAccessCheck);
     writer.WriteTimeSpanValue("periodOfflineBeforeWipeIsEnforced", PeriodOfflineBeforeWipeIsEnforced);
     writer.WriteTimeSpanValue("periodOnlineBeforeAccessCheck", PeriodOnlineBeforeAccessCheck);
     writer.WriteEnumValue <ManagedAppPinCharacterSet>("pinCharacterSet", PinCharacterSet);
     writer.WriteBoolValue("pinRequired", PinRequired);
     writer.WriteBoolValue("printBlocked", PrintBlocked);
     writer.WriteBoolValue("saveAsBlocked", SaveAsBlocked);
     writer.WriteBoolValue("simplePinBlocked", SimplePinBlocked);
 }
コード例 #6
0
ファイル: Call.cs プロジェクト: microsoftgraph/msgraph-cli
 /// <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.WriteCollectionOfObjectValues <AudioRoutingGroup>("audioRoutingGroups", AudioRoutingGroups);
     writer.WriteStringValue("callbackUri", CallbackUri);
     writer.WriteStringValue("callChainId", CallChainId);
     writer.WriteObjectValue <ApiSdk.Models.CallOptions>("callOptions", CallOptions);
     writer.WriteCollectionOfObjectValues <CallRoute>("callRoutes", CallRoutes);
     writer.WriteObjectValue <ApiSdk.Models.ChatInfo>("chatInfo", ChatInfo);
     writer.WriteEnumValue <CallDirection>("direction", Direction);
     writer.WriteObjectValue <ApiSdk.Models.IncomingContext>("incomingContext", IncomingContext);
     writer.WriteObjectValue <ApiSdk.Models.MediaConfig>("mediaConfig", MediaConfig);
     writer.WriteObjectValue <CallMediaState>("mediaState", MediaState);
     writer.WriteObjectValue <ApiSdk.Models.MeetingInfo>("meetingInfo", MeetingInfo);
     writer.WriteStringValue("myParticipantId", MyParticipantId);
     writer.WriteCollectionOfObjectValues <CommsOperation>("operations", Operations);
     writer.WriteCollectionOfObjectValues <Participant>("participants", Participants);
     writer.WriteCollectionOfEnumValues <Modality>("requestedModalities", RequestedModalities);
     writer.WriteObjectValue <ApiSdk.Models.ResultInfo>("resultInfo", ResultInfo);
     writer.WriteObjectValue <ParticipantInfo>("source", Source);
     writer.WriteEnumValue <CallState>("state", State);
     writer.WriteStringValue("subject", Subject);
     writer.WriteCollectionOfObjectValues <InvitationParticipantInfo>("targets", Targets);
     writer.WriteStringValue("tenantId", TenantId);
     writer.WriteObjectValue <ApiSdk.Models.ToneInfo>("toneInfo", ToneInfo);
     writer.WriteObjectValue <CallTranscriptionInfo>("transcription", Transcription);
 }
コード例 #7
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("description", Description);
     writer.WriteCollectionOfEnumValues <PrinterProcessingStateDetail>("details", Details);
     writer.WriteEnumValue <PrinterProcessingState>("state", State);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #8
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.WriteCollectionOfEnumValues <ConditionalAccessGrantControl>("builtInControls", BuiltInControls);
     writer.WriteCollectionOfPrimitiveValues <string>("customAuthenticationFactors", CustomAuthenticationFactors);
     writer.WriteStringValue("operator", Operator);
     writer.WriteCollectionOfPrimitiveValues <string>("termsOfUse", TermsOfUse);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #9
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.WriteCollectionOfEnumValues <DayOfWeek>("daysOfWeek", DaysOfWeek);
     writer.WriteTimeValue("endTime", EndTime);
     writer.WriteTimeValue("startTime", StartTime);
     writer.WriteObjectValue <TimeZoneBase>("timeZone", TimeZone);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #10
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.WriteCollectionOfEnumValues <Modality>("acceptedModalities", AcceptedModalities);
     writer.WriteStringValue("callbackUri", CallbackUri);
     writer.WriteObjectValue <IncomingCallOptions>("callOptions", CallOptions);
     writer.WriteObjectValue <ApiSdk.Models.MediaConfig>("mediaConfig", MediaConfig);
     writer.WriteIntValue("participantCapacity", ParticipantCapacity);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #11
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.WriteCollectionOfEnumValues <CalendarRoleType>("allowedRoles", AllowedRoles);
     writer.WriteObjectValue <ApiSdk.Models.EmailAddress>("emailAddress", EmailAddress);
     writer.WriteBoolValue("isInsideOrganization", IsInsideOrganization);
     writer.WriteBoolValue("isRemovable", IsRemovable);
     writer.WriteEnumValue <CalendarRoleType>("role", Role);
 }
コード例 #12
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("caller", Caller);
     writer.WriteCollectionOfPrimitiveValues <string>("enforcedSettings", EnforcedSettings);
     writer.WriteCollectionOfPrimitiveValues <string>("inheritableSettings", InheritableSettings);
     writer.WriteStringValue("level", Level);
     writer.WriteCollectionOfEnumValues <UnifiedRoleManagementPolicyRuleTargetOperations>("operations", Operations);
     writer.WriteCollectionOfObjectValues <DirectoryObject>("targetObjects", TargetObjects);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #13
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.WriteIntValue("dayOfMonth", DayOfMonth);
     writer.WriteCollectionOfEnumValues <DayOfWeek>("daysOfWeek", DaysOfWeek);
     writer.WriteEnumValue <DayOfWeek>("firstDayOfWeek", FirstDayOfWeek);
     writer.WriteEnumValue <WeekIndex>("index", Index);
     writer.WriteIntValue("interval", Interval);
     writer.WriteIntValue("month", Month);
     writer.WriteEnumValue <RecurrencePatternType>("type", Type);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #14
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.WriteObjectValue <Endpoint>("callee", Callee);
     writer.WriteObjectValue <Endpoint>("caller", Caller);
     writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime);
     writer.WriteObjectValue <ApiSdk.Models.CallRecords.FailureInfo>("failureInfo", FailureInfo);
     writer.WriteCollectionOfEnumValues <Modality>("modalities", Modalities);
     writer.WriteCollectionOfObjectValues <Segment>("segments", Segments);
     writer.WriteDateTimeOffsetValue("startDateTime", StartDateTime);
 }
コード例 #15
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.WriteCollectionOfPrimitiveValues <string>("aliases", Aliases);
     writer.WriteBoolValue("isQueryable", IsQueryable);
     writer.WriteBoolValue("isRefinable", IsRefinable);
     writer.WriteBoolValue("isRetrievable", IsRetrievable);
     writer.WriteBoolValue("isSearchable", IsSearchable);
     writer.WriteCollectionOfEnumValues <Label>("labels", Labels);
     writer.WriteStringValue("name", Name);
     writer.WriteEnumValue <PropertyType>("type", Type);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #16
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.WriteObjectValue <UserIdentity>("createdBy", CreatedBy);
     writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
     writer.WriteCollectionOfEnumValues <AccessReviewHistoryDecisionFilter>("decisions", Decisions);
     writer.WriteStringValue("displayName", DisplayName);
     writer.WriteCollectionOfObjectValues <AccessReviewHistoryInstance>("instances", Instances);
     writer.WriteDateTimeOffsetValue("reviewHistoryPeriodEndDateTime", ReviewHistoryPeriodEndDateTime);
     writer.WriteDateTimeOffsetValue("reviewHistoryPeriodStartDateTime", ReviewHistoryPeriodStartDateTime);
     writer.WriteObjectValue <AccessReviewHistoryScheduleSettings>("scheduleSettings", ScheduleSettings);
     writer.WriteCollectionOfObjectValues <AccessReviewScope>("scopes", Scopes);
     writer.WriteEnumValue <AccessReviewHistoryStatus>("status", Status);
 }
コード例 #17
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.WriteDateTimeOffsetValue("endDateTime", EndDateTime);
     writer.WriteStringValue("joinWebUrl", JoinWebUrl);
     writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
     writer.WriteCollectionOfEnumValues <Modality>("modalities", Modalities);
     writer.WriteObjectValue <ApiSdk.Models.IdentitySet>("organizer", Organizer);
     writer.WriteCollectionOfObjectValues <ApiSdk.Models.IdentitySet>("participants", Participants);
     writer.WriteCollectionOfObjectValues <Session>("sessions", Sessions);
     writer.WriteDateTimeOffsetValue("startDateTime", StartDateTime);
     writer.WriteEnumValue <CallType>("type", Type);
     writer.WriteLongValue("version", Version);
 }
コード例 #18
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.WriteCollectionOfPrimitiveValues <string>("aggregationFilters", AggregationFilters);
     writer.WriteCollectionOfObjectValues <AggregationOption>("aggregations", Aggregations);
     writer.WriteCollectionOfPrimitiveValues <string>("contentSources", ContentSources);
     writer.WriteBoolValue("enableTopResults", EnableTopResults);
     writer.WriteCollectionOfEnumValues <EntityType>("entityTypes", EntityTypes);
     writer.WriteCollectionOfPrimitiveValues <string>("fields", Fields);
     writer.WriteIntValue("from", From);
     writer.WriteObjectValue <SearchQuery>("query", Query);
     writer.WriteObjectValue <SearchAlterationOptions>("queryAlterationOptions", QueryAlterationOptions);
     writer.WriteObjectValue <ResultTemplateOption>("resultTemplateOptions", ResultTemplateOptions);
     writer.WriteIntValue("size", Size);
     writer.WriteCollectionOfObjectValues <SortProperty>("sortProperties", SortProperties);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #19
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.WriteObjectValue <MobileAppIdentifier>("appIdentifier", AppIdentifier);
     writer.WriteStringValue("applicationVersion", ApplicationVersion);
     writer.WriteCollectionOfObjectValues <ManagedAppPolicy>("appliedPolicies", AppliedPolicies);
     writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
     writer.WriteStringValue("deviceName", DeviceName);
     writer.WriteStringValue("deviceTag", DeviceTag);
     writer.WriteStringValue("deviceType", DeviceType);
     writer.WriteCollectionOfEnumValues <ManagedAppFlaggedReason>("flaggedReasons", FlaggedReasons);
     writer.WriteCollectionOfObjectValues <ManagedAppPolicy>("intendedPolicies", IntendedPolicies);
     writer.WriteDateTimeOffsetValue("lastSyncDateTime", LastSyncDateTime);
     writer.WriteStringValue("managementSdkVersion", ManagementSdkVersion);
     writer.WriteCollectionOfObjectValues <ManagedAppOperation>("operations", Operations);
     writer.WriteStringValue("platformVersion", PlatformVersion);
     writer.WriteStringValue("userId", UserId);
     writer.WriteStringValue("version", Version);
 }
コード例 #20
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.WriteEnumValue <PrintColorMode>("colorMode", ColorMode);
     writer.WriteStringValue("contentType", ContentType);
     writer.WriteIntValue("copiesPerJob", CopiesPerJob);
     writer.WriteIntValue("dpi", Dpi);
     writer.WriteEnumValue <PrintDuplexMode>("duplexMode", DuplexMode);
     writer.WriteCollectionOfEnumValues <PrintFinishing>("finishings", Finishings);
     writer.WriteBoolValue("fitPdfToPage", FitPdfToPage);
     writer.WriteStringValue("inputBin", InputBin);
     writer.WriteStringValue("mediaColor", MediaColor);
     writer.WriteStringValue("mediaSize", MediaSize);
     writer.WriteStringValue("mediaType", MediaType);
     writer.WriteEnumValue <PrintMultipageLayout>("multipageLayout", MultipageLayout);
     writer.WriteEnumValue <PrintOrientation>("orientation", Orientation);
     writer.WriteStringValue("outputBin", OutputBin);
     writer.WriteIntValue("pagesPerSheet", PagesPerSheet);
     writer.WriteEnumValue <PrintQuality>("quality", Quality);
     writer.WriteEnumValue <PrintScaling>("scaling", Scaling);
     writer.WriteAdditionalData(AdditionalData);
 }
コード例 #21
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.WriteCollectionOfEnumValues <OnlineMeetingProviderType>("allowedOnlineMeetingProviders", AllowedOnlineMeetingProviders);
     writer.WriteCollectionOfObjectValues <CalendarPermission>("calendarPermissions", CalendarPermissions);
     writer.WriteCollectionOfObjectValues <Event>("calendarView", CalendarView);
     writer.WriteBoolValue("canEdit", CanEdit);
     writer.WriteBoolValue("canShare", CanShare);
     writer.WriteBoolValue("canViewPrivateItems", CanViewPrivateItems);
     writer.WriteStringValue("changeKey", ChangeKey);
     writer.WriteEnumValue <CalendarColor>("color", Color);
     writer.WriteEnumValue <OnlineMeetingProviderType>("defaultOnlineMeetingProvider", DefaultOnlineMeetingProvider);
     writer.WriteCollectionOfObjectValues <Event>("events", Events);
     writer.WriteStringValue("hexColor", HexColor);
     writer.WriteBoolValue("isDefaultCalendar", IsDefaultCalendar);
     writer.WriteBoolValue("isRemovable", IsRemovable);
     writer.WriteBoolValue("isTallyingResponses", IsTallyingResponses);
     writer.WriteCollectionOfObjectValues <MultiValueLegacyExtendedProperty>("multiValueExtendedProperties", MultiValueExtendedProperties);
     writer.WriteStringValue("name", Name);
     writer.WriteObjectValue <EmailAddress>("owner", Owner);
     writer.WriteCollectionOfObjectValues <SingleValueLegacyExtendedProperty>("singleValueExtendedProperties", SingleValueExtendedProperties);
 }
コード例 #22
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.WriteCollectionOfEnumValues <CalendarRoleType>("value", Value);
     writer.WriteAdditionalData(AdditionalData);
 }