2025-11-14 13:33:27 +00:00
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions ;
using Microsoft.Kiota.Abstractions.Serialization ;
using System.Collections.Generic ;
using System.IO ;
using System ;
namespace Marechai.App.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class MachinePhotoDto : IAdditionalDataHolder , IParsable
#pragma warning restore CS1591
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary < string , object > AdditionalData { get ; set ; }
/// <summary>The aperture property</summary>
2025-11-15 22:41:01 +00:00
public double? Aperture { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The author property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Author { get ; set ; }
#nullable restore
#else
public string Author { get ; set ; }
#endif
/// <summary>The camera_manufacturer property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? CameraManufacturer { get ; set ; }
#nullable restore
#else
public string CameraManufacturer { get ; set ; }
#endif
/// <summary>The camera_model property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? CameraModel { get ; set ; }
#nullable restore
#else
public string CameraModel { get ; set ; }
#endif
/// <summary>The colorspace property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_colorspace ? Colorspace { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_colorspace Colorspace { get ; set ; }
#endif
/// <summary>The comments property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Comments { get ; set ; }
#nullable restore
#else
public string Comments { get ; set ; }
#endif
/// <summary>The contrast property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_contrast ? Contrast { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_contrast Contrast { get ; set ; }
#endif
/// <summary>The creation_date property</summary>
public DateTimeOffset ? CreationDate { get ; set ; }
/// <summary>The digital_zoom property</summary>
2025-11-15 22:41:01 +00:00
public double? DigitalZoom { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The exif_version property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ExifVersion { get ; set ; }
#nullable restore
#else
public string ExifVersion { get ; set ; }
#endif
/// <summary>The exposure property</summary>
2025-11-15 22:41:01 +00:00
public double? Exposure { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The exposure_method property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_method ? ExposureMethod { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_method ExposureMethod { get ; set ; }
#endif
/// <summary>The exposure_program property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_program ? ExposureProgram { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_program ExposureProgram { get ; set ; }
#endif
/// <summary>The flash property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_flash ? Flash { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_flash Flash { get ; set ; }
#endif
/// <summary>The focal property</summary>
2025-11-15 22:41:01 +00:00
public double? Focal { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The focal_equivalent property</summary>
2025-11-15 22:41:01 +00:00
public double? FocalEquivalent { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The focal_length property</summary>
2025-11-15 22:41:01 +00:00
public double? FocalLength { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The horizontal_resolution property</summary>
2025-11-15 22:41:01 +00:00
public double? HorizontalResolution { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The id property</summary>
public Guid ? Id { get ; set ; }
/// <summary>The iso property</summary>
2025-11-15 22:41:01 +00:00
public int? Iso { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The lens property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Lens { get ; set ; }
#nullable restore
#else
public string Lens { get ; set ; }
#endif
/// <summary>The license_id property</summary>
2025-11-15 22:41:01 +00:00
public int? LicenseId { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The license_name property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? LicenseName { get ; set ; }
#nullable restore
#else
public string LicenseName { get ; set ; }
#endif
/// <summary>The light_source property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_light_source ? LightSource { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_light_source LightSource { get ; set ; }
#endif
/// <summary>The machine_company_name property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? MachineCompanyName { get ; set ; }
#nullable restore
#else
public string MachineCompanyName { get ; set ; }
#endif
/// <summary>The machine_id property</summary>
2025-11-15 22:41:01 +00:00
public int? MachineId { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The machine_name property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? MachineName { get ; set ; }
#nullable restore
#else
public string MachineName { get ; set ; }
#endif
/// <summary>The metering_mode property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_metering_mode ? MeteringMode { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_metering_mode MeteringMode { get ; set ; }
#endif
/// <summary>The orientation property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_orientation ? Orientation { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_orientation Orientation { get ; set ; }
#endif
/// <summary>The original_extension property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OriginalExtension { get ; set ; }
#nullable restore
#else
public string OriginalExtension { get ; set ; }
#endif
/// <summary>The resolution_unit property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_resolution_unit ? ResolutionUnit { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_resolution_unit ResolutionUnit { get ; set ; }
#endif
/// <summary>The saturation property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_saturation ? Saturation { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_saturation Saturation { get ; set ; }
#endif
/// <summary>The scene_capture_type property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_scene_capture_type ? SceneCaptureType { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_scene_capture_type SceneCaptureType { get ; set ; }
#endif
/// <summary>The sensing_method property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sensing_method ? SensingMethod { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sensing_method SensingMethod { get ; set ; }
#endif
/// <summary>The sharpness property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sharpness ? Sharpness { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sharpness Sharpness { get ; set ; }
#endif
/// <summary>The software property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Software { get ; set ; }
#nullable restore
#else
public string Software { get ; set ; }
#endif
/// <summary>The source property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Source { get ; set ; }
#nullable restore
#else
public string Source { get ; set ; }
#endif
/// <summary>The subject_distance_range property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_subject_distance_range ? SubjectDistanceRange { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_subject_distance_range SubjectDistanceRange { get ; set ; }
#endif
/// <summary>The upload_date property</summary>
public DateTimeOffset ? UploadDate { get ; set ; }
/// <summary>The user_id property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UserId { get ; set ; }
#nullable restore
#else
public string UserId { get ; set ; }
#endif
/// <summary>The vertical_resolution property</summary>
2025-11-15 22:41:01 +00:00
public double? VerticalResolution { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The white_balance property</summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_white_balance ? WhiteBalance { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_white_balance WhiteBalance { get ; set ; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::Marechai.App.Models.MachinePhotoDto"/> and sets the default values.
/// </summary>
public MachinePhotoDto ( )
{
AdditionalData = new Dictionary < string , object > ( ) ;
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
return new global :: Marechai . App . Models . MachinePhotoDto ( ) ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
return new Dictionary < string , Action < IParseNode > >
{
2025-11-15 22:41:01 +00:00
{ "aperture" , n = > { Aperture = n . GetDoubleValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "author" , n = > { Author = n . GetStringValue ( ) ; } } ,
{ "camera_manufacturer" , n = > { CameraManufacturer = n . GetStringValue ( ) ; } } ,
{ "camera_model" , n = > { CameraModel = n . GetStringValue ( ) ; } } ,
{ "colorspace" , n = > { Colorspace = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_colorspace > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_colorspace . CreateFromDiscriminatorValue ) ; } } ,
{ "comments" , n = > { Comments = n . GetStringValue ( ) ; } } ,
{ "contrast" , n = > { Contrast = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_contrast > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_contrast . CreateFromDiscriminatorValue ) ; } } ,
{ "creation_date" , n = > { CreationDate = n . GetDateTimeOffsetValue ( ) ; } } ,
2025-11-15 22:41:01 +00:00
{ "digital_zoom" , n = > { DigitalZoom = n . GetDoubleValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "exif_version" , n = > { ExifVersion = n . GetStringValue ( ) ; } } ,
2025-11-15 22:41:01 +00:00
{ "exposure" , n = > { Exposure = n . GetDoubleValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "exposure_method" , n = > { ExposureMethod = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_method > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_method . CreateFromDiscriminatorValue ) ; } } ,
{ "exposure_program" , n = > { ExposureProgram = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_program > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_program . CreateFromDiscriminatorValue ) ; } } ,
{ "flash" , n = > { Flash = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_flash > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_flash . CreateFromDiscriminatorValue ) ; } } ,
2025-11-15 22:41:01 +00:00
{ "focal" , n = > { Focal = n . GetDoubleValue ( ) ; } } ,
{ "focal_equivalent" , n = > { FocalEquivalent = n . GetDoubleValue ( ) ; } } ,
{ "focal_length" , n = > { FocalLength = n . GetDoubleValue ( ) ; } } ,
{ "horizontal_resolution" , n = > { HorizontalResolution = n . GetDoubleValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "id" , n = > { Id = n . GetGuidValue ( ) ; } } ,
2025-11-15 22:41:01 +00:00
{ "iso" , n = > { Iso = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "lens" , n = > { Lens = n . GetStringValue ( ) ; } } ,
2025-11-15 22:41:01 +00:00
{ "license_id" , n = > { LicenseId = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "license_name" , n = > { LicenseName = n . GetStringValue ( ) ; } } ,
{ "light_source" , n = > { LightSource = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_light_source > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_light_source . CreateFromDiscriminatorValue ) ; } } ,
{ "machine_company_name" , n = > { MachineCompanyName = n . GetStringValue ( ) ; } } ,
2025-11-15 22:41:01 +00:00
{ "machine_id" , n = > { MachineId = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "machine_name" , n = > { MachineName = n . GetStringValue ( ) ; } } ,
{ "metering_mode" , n = > { MeteringMode = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_metering_mode > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_metering_mode . CreateFromDiscriminatorValue ) ; } } ,
{ "orientation" , n = > { Orientation = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_orientation > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_orientation . CreateFromDiscriminatorValue ) ; } } ,
{ "original_extension" , n = > { OriginalExtension = n . GetStringValue ( ) ; } } ,
{ "resolution_unit" , n = > { ResolutionUnit = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_resolution_unit > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_resolution_unit . CreateFromDiscriminatorValue ) ; } } ,
{ "saturation" , n = > { Saturation = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_saturation > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_saturation . CreateFromDiscriminatorValue ) ; } } ,
{ "scene_capture_type" , n = > { SceneCaptureType = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_scene_capture_type > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_scene_capture_type . CreateFromDiscriminatorValue ) ; } } ,
{ "sensing_method" , n = > { SensingMethod = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sensing_method > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sensing_method . CreateFromDiscriminatorValue ) ; } } ,
{ "sharpness" , n = > { Sharpness = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sharpness > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sharpness . CreateFromDiscriminatorValue ) ; } } ,
{ "software" , n = > { Software = n . GetStringValue ( ) ; } } ,
{ "source" , n = > { Source = n . GetStringValue ( ) ; } } ,
{ "subject_distance_range" , n = > { SubjectDistanceRange = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_subject_distance_range > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_subject_distance_range . CreateFromDiscriminatorValue ) ; } } ,
{ "upload_date" , n = > { UploadDate = n . GetDateTimeOffsetValue ( ) ; } } ,
{ "user_id" , n = > { UserId = n . GetStringValue ( ) ; } } ,
2025-11-15 22:41:01 +00:00
{ "vertical_resolution" , n = > { VerticalResolution = n . GetDoubleValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "white_balance" , n = > { WhiteBalance = n . GetObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_white_balance > ( global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_white_balance . CreateFromDiscriminatorValue ) ; } } ,
} ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
2025-11-15 22:41:01 +00:00
writer . WriteDoubleValue ( "aperture" , Aperture ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "author" , Author ) ;
writer . WriteStringValue ( "camera_manufacturer" , CameraManufacturer ) ;
writer . WriteStringValue ( "camera_model" , CameraModel ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_colorspace > ( "colorspace" , Colorspace ) ;
writer . WriteStringValue ( "comments" , Comments ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_contrast > ( "contrast" , Contrast ) ;
writer . WriteDateTimeOffsetValue ( "creation_date" , CreationDate ) ;
2025-11-15 22:41:01 +00:00
writer . WriteDoubleValue ( "digital_zoom" , DigitalZoom ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "exif_version" , ExifVersion ) ;
2025-11-15 22:41:01 +00:00
writer . WriteDoubleValue ( "exposure" , Exposure ) ;
2025-11-14 13:33:27 +00:00
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_method > ( "exposure_method" , ExposureMethod ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_program > ( "exposure_program" , ExposureProgram ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_flash > ( "flash" , Flash ) ;
2025-11-15 22:41:01 +00:00
writer . WriteDoubleValue ( "focal" , Focal ) ;
writer . WriteDoubleValue ( "focal_equivalent" , FocalEquivalent ) ;
writer . WriteDoubleValue ( "focal_length" , FocalLength ) ;
writer . WriteDoubleValue ( "horizontal_resolution" , HorizontalResolution ) ;
2025-11-14 13:33:27 +00:00
writer . WriteGuidValue ( "id" , Id ) ;
2025-11-15 22:41:01 +00:00
writer . WriteIntValue ( "iso" , Iso ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "lens" , Lens ) ;
2025-11-15 22:41:01 +00:00
writer . WriteIntValue ( "license_id" , LicenseId ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "license_name" , LicenseName ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_light_source > ( "light_source" , LightSource ) ;
writer . WriteStringValue ( "machine_company_name" , MachineCompanyName ) ;
2025-11-15 22:41:01 +00:00
writer . WriteIntValue ( "machine_id" , MachineId ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "machine_name" , MachineName ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_metering_mode > ( "metering_mode" , MeteringMode ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_orientation > ( "orientation" , Orientation ) ;
writer . WriteStringValue ( "original_extension" , OriginalExtension ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_resolution_unit > ( "resolution_unit" , ResolutionUnit ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_saturation > ( "saturation" , Saturation ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_scene_capture_type > ( "scene_capture_type" , SceneCaptureType ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sensing_method > ( "sensing_method" , SensingMethod ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sharpness > ( "sharpness" , Sharpness ) ;
writer . WriteStringValue ( "software" , Software ) ;
writer . WriteStringValue ( "source" , Source ) ;
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_subject_distance_range > ( "subject_distance_range" , SubjectDistanceRange ) ;
writer . WriteDateTimeOffsetValue ( "upload_date" , UploadDate ) ;
writer . WriteStringValue ( "user_id" , UserId ) ;
2025-11-15 22:41:01 +00:00
writer . WriteDoubleValue ( "vertical_resolution" , VerticalResolution ) ;
2025-11-14 13:33:27 +00:00
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_white_balance > ( "white_balance" , WhiteBalance ) ;
writer . WriteAdditionalData ( AdditionalData ) ;
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.ColorSpace"/>, <see cref="global::Marechai.App.Models.MachinePhotoDto_colorspaceMember1"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_colorspace : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.ColorSpace"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . ColorSpace ? ColorSpace { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . ColorSpace ColorSpace { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_colorspaceMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_colorspaceMember1 ? MachinePhotoDtoColorspaceMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_colorspaceMember1 MachinePhotoDtoColorspaceMember1 { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_colorspace"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_colorspace CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_colorspace ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . ColorSpace = new global :: Marechai . App . Models . ColorSpace ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoColorspaceMember1 = new global :: Marechai . App . Models . MachinePhotoDto_colorspaceMember1 ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( ColorSpace ! = null )
{
return ColorSpace . GetFieldDeserializers ( ) ;
}
else if ( MachinePhotoDtoColorspaceMember1 ! = null )
{
return MachinePhotoDtoColorspaceMember1 . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( ColorSpace ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . ColorSpace > ( null , ColorSpace ) ;
}
else if ( MachinePhotoDtoColorspaceMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_colorspaceMember1 > ( null , MachinePhotoDtoColorspaceMember1 ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.Contrast"/>, <see cref="global::Marechai.App.Models.MachinePhotoDto_contrastMember1"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_contrast : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.Contrast"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . Contrast ? Contrast { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . Contrast Contrast { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_contrastMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_contrastMember1 ? MachinePhotoDtoContrastMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_contrastMember1 MachinePhotoDtoContrastMember1 { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_contrast"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_contrast CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_contrast ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . Contrast = new global :: Marechai . App . Models . Contrast ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoContrastMember1 = new global :: Marechai . App . Models . MachinePhotoDto_contrastMember1 ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( Contrast ! = null )
{
return Contrast . GetFieldDeserializers ( ) ;
}
else if ( MachinePhotoDtoContrastMember1 ! = null )
{
return MachinePhotoDtoContrastMember1 . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( Contrast ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . Contrast > ( null , Contrast ) ;
}
else if ( MachinePhotoDtoContrastMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_contrastMember1 > ( null , MachinePhotoDtoContrastMember1 ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.ExposureMode"/>, <see cref="global::Marechai.App.Models.MachinePhotoDto_exposure_methodMember1"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_exposure_method : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.ExposureMode"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . ExposureMode ? ExposureMode { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . ExposureMode ExposureMode { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_exposure_methodMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_exposure_methodMember1 ? MachinePhotoDtoExposureMethodMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_exposure_methodMember1 MachinePhotoDtoExposureMethodMember1 { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_exposure_method"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_method CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_method ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . ExposureMode = new global :: Marechai . App . Models . ExposureMode ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoExposureMethodMember1 = new global :: Marechai . App . Models . MachinePhotoDto_exposure_methodMember1 ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( ExposureMode ! = null )
{
return ExposureMode . GetFieldDeserializers ( ) ;
}
else if ( MachinePhotoDtoExposureMethodMember1 ! = null )
{
return MachinePhotoDtoExposureMethodMember1 . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( ExposureMode ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . ExposureMode > ( null , ExposureMode ) ;
}
else if ( MachinePhotoDtoExposureMethodMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_exposure_methodMember1 > ( null , MachinePhotoDtoExposureMethodMember1 ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.ExposureProgram"/>, <see cref="global::Marechai.App.Models.MachinePhotoDto_exposure_programMember1"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_exposure_program : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.ExposureProgram"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . ExposureProgram ? ExposureProgram { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . ExposureProgram ExposureProgram { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_exposure_programMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_exposure_programMember1 ? MachinePhotoDtoExposureProgramMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_exposure_programMember1 MachinePhotoDtoExposureProgramMember1 { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_exposure_program"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_program CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_exposure_program ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . ExposureProgram = new global :: Marechai . App . Models . ExposureProgram ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoExposureProgramMember1 = new global :: Marechai . App . Models . MachinePhotoDto_exposure_programMember1 ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( ExposureProgram ! = null )
{
return ExposureProgram . GetFieldDeserializers ( ) ;
}
else if ( MachinePhotoDtoExposureProgramMember1 ! = null )
{
return MachinePhotoDtoExposureProgramMember1 . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( ExposureProgram ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . ExposureProgram > ( null , ExposureProgram ) ;
}
else if ( MachinePhotoDtoExposureProgramMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_exposure_programMember1 > ( null , MachinePhotoDtoExposureProgramMember1 ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.Flash"/>, <see cref="global::Marechai.App.Models.MachinePhotoDto_flashMember1"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_flash : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.Flash"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . Flash ? Flash { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . Flash Flash { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_flashMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_flashMember1 ? MachinePhotoDtoFlashMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_flashMember1 MachinePhotoDtoFlashMember1 { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_flash"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_flash CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_flash ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . Flash = new global :: Marechai . App . Models . Flash ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoFlashMember1 = new global :: Marechai . App . Models . MachinePhotoDto_flashMember1 ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( Flash ! = null )
{
return Flash . GetFieldDeserializers ( ) ;
}
else if ( MachinePhotoDtoFlashMember1 ! = null )
{
return MachinePhotoDtoFlashMember1 . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( Flash ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . Flash > ( null , Flash ) ;
}
else if ( MachinePhotoDtoFlashMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_flashMember1 > ( null , MachinePhotoDtoFlashMember1 ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.LightSource"/>, <see cref="global::Marechai.App.Models.MachinePhotoDto_light_sourceMember1"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_light_source : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.LightSource"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . LightSource ? LightSource { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . LightSource LightSource { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_light_sourceMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_light_sourceMember1 ? MachinePhotoDtoLightSourceMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_light_sourceMember1 MachinePhotoDtoLightSourceMember1 { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_light_source"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_light_source CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_light_source ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . LightSource = new global :: Marechai . App . Models . LightSource ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoLightSourceMember1 = new global :: Marechai . App . Models . MachinePhotoDto_light_sourceMember1 ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( LightSource ! = null )
{
return LightSource . GetFieldDeserializers ( ) ;
}
else if ( MachinePhotoDtoLightSourceMember1 ! = null )
{
return MachinePhotoDtoLightSourceMember1 . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( LightSource ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . LightSource > ( null , LightSource ) ;
}
else if ( MachinePhotoDtoLightSourceMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_light_sourceMember1 > ( null , MachinePhotoDtoLightSourceMember1 ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_metering_modeMember1"/>, <see cref="global::Marechai.App.Models.MeteringMode"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_metering_mode : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_metering_modeMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_metering_modeMember1 ? MachinePhotoDtoMeteringModeMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_metering_modeMember1 MachinePhotoDtoMeteringModeMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MeteringMode"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MeteringMode ? MeteringMode { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MeteringMode MeteringMode { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_metering_mode"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_metering_mode CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_metering_mode ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoMeteringModeMember1 = new global :: Marechai . App . Models . MachinePhotoDto_metering_modeMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MeteringMode = new global :: Marechai . App . Models . MeteringMode ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoMeteringModeMember1 ! = null )
{
return MachinePhotoDtoMeteringModeMember1 . GetFieldDeserializers ( ) ;
}
else if ( MeteringMode ! = null )
{
return MeteringMode . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoMeteringModeMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_metering_modeMember1 > ( null , MachinePhotoDtoMeteringModeMember1 ) ;
}
else if ( MeteringMode ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MeteringMode > ( null , MeteringMode ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_orientationMember1"/>, <see cref="global::Marechai.App.Models.Orientation"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_orientation : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_orientationMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_orientationMember1 ? MachinePhotoDtoOrientationMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_orientationMember1 MachinePhotoDtoOrientationMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.Orientation"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . Orientation ? Orientation { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . Orientation Orientation { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_orientation"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_orientation CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_orientation ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoOrientationMember1 = new global :: Marechai . App . Models . MachinePhotoDto_orientationMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . Orientation = new global :: Marechai . App . Models . Orientation ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoOrientationMember1 ! = null )
{
return MachinePhotoDtoOrientationMember1 . GetFieldDeserializers ( ) ;
}
else if ( Orientation ! = null )
{
return Orientation . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoOrientationMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_orientationMember1 > ( null , MachinePhotoDtoOrientationMember1 ) ;
}
else if ( Orientation ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . Orientation > ( null , Orientation ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_resolution_unitMember1"/>, <see cref="global::Marechai.App.Models.ResolutionUnit"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_resolution_unit : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_resolution_unitMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_resolution_unitMember1 ? MachinePhotoDtoResolutionUnitMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_resolution_unitMember1 MachinePhotoDtoResolutionUnitMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.ResolutionUnit"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . ResolutionUnit ? ResolutionUnit { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . ResolutionUnit ResolutionUnit { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_resolution_unit"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_resolution_unit CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_resolution_unit ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoResolutionUnitMember1 = new global :: Marechai . App . Models . MachinePhotoDto_resolution_unitMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . ResolutionUnit = new global :: Marechai . App . Models . ResolutionUnit ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoResolutionUnitMember1 ! = null )
{
return MachinePhotoDtoResolutionUnitMember1 . GetFieldDeserializers ( ) ;
}
else if ( ResolutionUnit ! = null )
{
return ResolutionUnit . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoResolutionUnitMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_resolution_unitMember1 > ( null , MachinePhotoDtoResolutionUnitMember1 ) ;
}
else if ( ResolutionUnit ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . ResolutionUnit > ( null , ResolutionUnit ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_saturationMember1"/>, <see cref="global::Marechai.App.Models.Saturation"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_saturation : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_saturationMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_saturationMember1 ? MachinePhotoDtoSaturationMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_saturationMember1 MachinePhotoDtoSaturationMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.Saturation"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . Saturation ? Saturation { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . Saturation Saturation { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_saturation"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_saturation CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_saturation ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoSaturationMember1 = new global :: Marechai . App . Models . MachinePhotoDto_saturationMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . Saturation = new global :: Marechai . App . Models . Saturation ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoSaturationMember1 ! = null )
{
return MachinePhotoDtoSaturationMember1 . GetFieldDeserializers ( ) ;
}
else if ( Saturation ! = null )
{
return Saturation . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoSaturationMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_saturationMember1 > ( null , MachinePhotoDtoSaturationMember1 ) ;
}
else if ( Saturation ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . Saturation > ( null , Saturation ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_scene_capture_typeMember1"/>, <see cref="global::Marechai.App.Models.SceneCaptureType"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_scene_capture_type : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_scene_capture_typeMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_scene_capture_typeMember1 ? MachinePhotoDtoSceneCaptureTypeMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_scene_capture_typeMember1 MachinePhotoDtoSceneCaptureTypeMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.SceneCaptureType"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . SceneCaptureType ? SceneCaptureType { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . SceneCaptureType SceneCaptureType { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_scene_capture_type"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_scene_capture_type CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_scene_capture_type ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoSceneCaptureTypeMember1 = new global :: Marechai . App . Models . MachinePhotoDto_scene_capture_typeMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . SceneCaptureType = new global :: Marechai . App . Models . SceneCaptureType ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoSceneCaptureTypeMember1 ! = null )
{
return MachinePhotoDtoSceneCaptureTypeMember1 . GetFieldDeserializers ( ) ;
}
else if ( SceneCaptureType ! = null )
{
return SceneCaptureType . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoSceneCaptureTypeMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_scene_capture_typeMember1 > ( null , MachinePhotoDtoSceneCaptureTypeMember1 ) ;
}
else if ( SceneCaptureType ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . SceneCaptureType > ( null , SceneCaptureType ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_sensing_methodMember1"/>, <see cref="global::Marechai.App.Models.SensingMethod"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_sensing_method : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_sensing_methodMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_sensing_methodMember1 ? MachinePhotoDtoSensingMethodMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_sensing_methodMember1 MachinePhotoDtoSensingMethodMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.SensingMethod"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . SensingMethod ? SensingMethod { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . SensingMethod SensingMethod { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_sensing_method"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sensing_method CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sensing_method ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoSensingMethodMember1 = new global :: Marechai . App . Models . MachinePhotoDto_sensing_methodMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . SensingMethod = new global :: Marechai . App . Models . SensingMethod ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoSensingMethodMember1 ! = null )
{
return MachinePhotoDtoSensingMethodMember1 . GetFieldDeserializers ( ) ;
}
else if ( SensingMethod ! = null )
{
return SensingMethod . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoSensingMethodMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_sensing_methodMember1 > ( null , MachinePhotoDtoSensingMethodMember1 ) ;
}
else if ( SensingMethod ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . SensingMethod > ( null , SensingMethod ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_sharpnessMember1"/>, <see cref="global::Marechai.App.Models.Sharpness"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_sharpness : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_sharpnessMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_sharpnessMember1 ? MachinePhotoDtoSharpnessMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_sharpnessMember1 MachinePhotoDtoSharpnessMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.Sharpness"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . Sharpness ? Sharpness { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . Sharpness Sharpness { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_sharpness"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sharpness CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_sharpness ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoSharpnessMember1 = new global :: Marechai . App . Models . MachinePhotoDto_sharpnessMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . Sharpness = new global :: Marechai . App . Models . Sharpness ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoSharpnessMember1 ! = null )
{
return MachinePhotoDtoSharpnessMember1 . GetFieldDeserializers ( ) ;
}
else if ( Sharpness ! = null )
{
return Sharpness . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoSharpnessMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_sharpnessMember1 > ( null , MachinePhotoDtoSharpnessMember1 ) ;
}
else if ( Sharpness ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . Sharpness > ( null , Sharpness ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_subject_distance_rangeMember1"/>, <see cref="global::Marechai.App.Models.SubjectDistanceRange"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_subject_distance_range : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_subject_distance_rangeMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_subject_distance_rangeMember1 ? MachinePhotoDtoSubjectDistanceRangeMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_subject_distance_rangeMember1 MachinePhotoDtoSubjectDistanceRangeMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.SubjectDistanceRange"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . SubjectDistanceRange ? SubjectDistanceRange { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . SubjectDistanceRange SubjectDistanceRange { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_subject_distance_range"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_subject_distance_range CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_subject_distance_range ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoSubjectDistanceRangeMember1 = new global :: Marechai . App . Models . MachinePhotoDto_subject_distance_rangeMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . SubjectDistanceRange = new global :: Marechai . App . Models . SubjectDistanceRange ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoSubjectDistanceRangeMember1 ! = null )
{
return MachinePhotoDtoSubjectDistanceRangeMember1 . GetFieldDeserializers ( ) ;
}
else if ( SubjectDistanceRange ! = null )
{
return SubjectDistanceRange . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoSubjectDistanceRangeMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_subject_distance_rangeMember1 > ( null , MachinePhotoDtoSubjectDistanceRangeMember1 ) ;
}
else if ( SubjectDistanceRange ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . SubjectDistanceRange > ( null , SubjectDistanceRange ) ;
}
}
}
/// <summary>
/// Composed type wrapper for classes <see cref="global::Marechai.App.Models.MachinePhotoDto_white_balanceMember1"/>, <see cref="global::Marechai.App.Models.WhiteBalance"/>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_white_balance : IComposedTypeWrapper , IParsable
{
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.MachinePhotoDto_white_balanceMember1"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . MachinePhotoDto_white_balanceMember1 ? MachinePhotoDtoWhiteBalanceMember1 { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . MachinePhotoDto_white_balanceMember1 MachinePhotoDtoWhiteBalanceMember1 { get ; set ; }
#endif
/// <summary>Composed type representation for type <see cref="global::Marechai.App.Models.WhiteBalance"/></summary>
#if NETSTANDARD2_1_OR_GREATER | | NETCOREAPP3_1_OR_GREATER
#nullable enable
public global :: Marechai . App . Models . WhiteBalance ? WhiteBalance { get ; set ; }
#nullable restore
#else
public global :: Marechai . App . Models . WhiteBalance WhiteBalance { get ; set ; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_white_balance"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_white_balance CreateFromDiscriminatorValue ( IParseNode parseNode )
{
if ( ReferenceEquals ( parseNode , null ) ) throw new ArgumentNullException ( nameof ( parseNode ) ) ;
var mappingValue = parseNode . GetChildNode ( "" ) ? . GetStringValue ( ) ;
var result = new global :: Marechai . App . Models . MachinePhotoDto . MachinePhotoDto_white_balance ( ) ;
if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . MachinePhotoDtoWhiteBalanceMember1 = new global :: Marechai . App . Models . MachinePhotoDto_white_balanceMember1 ( ) ;
}
else if ( "" . Equals ( mappingValue , StringComparison . OrdinalIgnoreCase ) )
{
result . WhiteBalance = new global :: Marechai . App . Models . WhiteBalance ( ) ;
}
return result ;
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
{
if ( MachinePhotoDtoWhiteBalanceMember1 ! = null )
{
return MachinePhotoDtoWhiteBalanceMember1 . GetFieldDeserializers ( ) ;
}
else if ( WhiteBalance ! = null )
{
return WhiteBalance . GetFieldDeserializers ( ) ;
}
return new Dictionary < string , Action < IParseNode > > ( ) ;
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize ( ISerializationWriter writer )
{
if ( ReferenceEquals ( writer , null ) ) throw new ArgumentNullException ( nameof ( writer ) ) ;
if ( MachinePhotoDtoWhiteBalanceMember1 ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . MachinePhotoDto_white_balanceMember1 > ( null , MachinePhotoDtoWhiteBalanceMember1 ) ;
}
else if ( WhiteBalance ! = null )
{
writer . WriteObjectValue < global :: Marechai . App . Models . WhiteBalance > ( null , WhiteBalance ) ;
}
}
}
}
}
#pragma warning restore CS0618