//
#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
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
/// The aperture property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? Aperture { get; set; }
#nullable restore
#else
public UntypedNode Aperture { get; set; }
#endif
/// The author property
#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
/// The camera_manufacturer property
#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
/// The camera_model property
#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
/// The colorspace property
#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
/// The comments property
#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
/// The contrast property
#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
/// The creation_date property
public DateTimeOffset? CreationDate { get; set; }
/// The digital_zoom property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? DigitalZoom { get; set; }
#nullable restore
#else
public UntypedNode DigitalZoom { get; set; }
#endif
/// The exif_version property
#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
/// The exposure property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? Exposure { get; set; }
#nullable restore
#else
public UntypedNode Exposure { get; set; }
#endif
/// The exposure_method property
#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
/// The exposure_program property
#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
/// The flash property
#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
/// The focal property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? Focal { get; set; }
#nullable restore
#else
public UntypedNode Focal { get; set; }
#endif
/// The focal_equivalent property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? FocalEquivalent { get; set; }
#nullable restore
#else
public UntypedNode FocalEquivalent { get; set; }
#endif
/// The focal_length property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? FocalLength { get; set; }
#nullable restore
#else
public UntypedNode FocalLength { get; set; }
#endif
/// The horizontal_resolution property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? HorizontalResolution { get; set; }
#nullable restore
#else
public UntypedNode HorizontalResolution { get; set; }
#endif
/// The id property
public Guid? Id { get; set; }
/// The iso property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? Iso { get; set; }
#nullable restore
#else
public UntypedNode Iso { get; set; }
#endif
/// The lens property
#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
/// The license_id property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? LicenseId { get; set; }
#nullable restore
#else
public UntypedNode LicenseId { get; set; }
#endif
/// The license_name property
#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
/// The light_source property
#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
/// The machine_company_name property
#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
/// The machine_id property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? MachineId { get; set; }
#nullable restore
#else
public UntypedNode MachineId { get; set; }
#endif
/// The machine_name property
#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
/// The metering_mode property
#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
/// The orientation property
#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
/// The original_extension property
#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
/// The resolution_unit property
#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
/// The saturation property
#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
/// The scene_capture_type property
#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
/// The sensing_method property
#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
/// The sharpness property
#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
/// The software property
#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
/// The source property
#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
/// The subject_distance_range property
#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
/// The upload_date property
public DateTimeOffset? UploadDate { get; set; }
/// The user_id property
#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
/// The vertical_resolution property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? VerticalResolution { get; set; }
#nullable restore
#else
public UntypedNode VerticalResolution { get; set; }
#endif
/// The white_balance property
#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
///
/// Instantiates a new and sets the default values.
///
public MachinePhotoDto()
{
AdditionalData = new Dictionary();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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();
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
{ "aperture", n => { Aperture = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "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.CreateFromDiscriminatorValue); } },
{ "comments", n => { Comments = n.GetStringValue(); } },
{ "contrast", n => { Contrast = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_contrast.CreateFromDiscriminatorValue); } },
{ "creation_date", n => { CreationDate = n.GetDateTimeOffsetValue(); } },
{ "digital_zoom", n => { DigitalZoom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "exif_version", n => { ExifVersion = n.GetStringValue(); } },
{ "exposure", n => { Exposure = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "exposure_method", n => { ExposureMethod = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_exposure_method.CreateFromDiscriminatorValue); } },
{ "exposure_program", n => { ExposureProgram = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_exposure_program.CreateFromDiscriminatorValue); } },
{ "flash", n => { Flash = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_flash.CreateFromDiscriminatorValue); } },
{ "focal", n => { Focal = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "focal_equivalent", n => { FocalEquivalent = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "focal_length", n => { FocalLength = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "horizontal_resolution", n => { HorizontalResolution = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "id", n => { Id = n.GetGuidValue(); } },
{ "iso", n => { Iso = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "lens", n => { Lens = n.GetStringValue(); } },
{ "license_id", n => { LicenseId = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "license_name", n => { LicenseName = n.GetStringValue(); } },
{ "light_source", n => { LightSource = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_light_source.CreateFromDiscriminatorValue); } },
{ "machine_company_name", n => { MachineCompanyName = n.GetStringValue(); } },
{ "machine_id", n => { MachineId = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "machine_name", n => { MachineName = n.GetStringValue(); } },
{ "metering_mode", n => { MeteringMode = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_metering_mode.CreateFromDiscriminatorValue); } },
{ "orientation", n => { Orientation = n.GetObjectValue(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.CreateFromDiscriminatorValue); } },
{ "saturation", n => { Saturation = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_saturation.CreateFromDiscriminatorValue); } },
{ "scene_capture_type", n => { SceneCaptureType = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_scene_capture_type.CreateFromDiscriminatorValue); } },
{ "sensing_method", n => { SensingMethod = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_sensing_method.CreateFromDiscriminatorValue); } },
{ "sharpness", n => { Sharpness = n.GetObjectValue(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.CreateFromDiscriminatorValue); } },
{ "upload_date", n => { UploadDate = n.GetDateTimeOffsetValue(); } },
{ "user_id", n => { UserId = n.GetStringValue(); } },
{ "vertical_resolution", n => { VerticalResolution = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } },
{ "white_balance", n => { WhiteBalance = n.GetObjectValue(global::Marechai.App.Models.MachinePhotoDto.MachinePhotoDto_white_balance.CreateFromDiscriminatorValue); } },
};
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue("aperture", Aperture);
writer.WriteStringValue("author", Author);
writer.WriteStringValue("camera_manufacturer", CameraManufacturer);
writer.WriteStringValue("camera_model", CameraModel);
writer.WriteObjectValue("colorspace", Colorspace);
writer.WriteStringValue("comments", Comments);
writer.WriteObjectValue("contrast", Contrast);
writer.WriteDateTimeOffsetValue("creation_date", CreationDate);
writer.WriteObjectValue("digital_zoom", DigitalZoom);
writer.WriteStringValue("exif_version", ExifVersion);
writer.WriteObjectValue("exposure", Exposure);
writer.WriteObjectValue("exposure_method", ExposureMethod);
writer.WriteObjectValue("exposure_program", ExposureProgram);
writer.WriteObjectValue("flash", Flash);
writer.WriteObjectValue("focal", Focal);
writer.WriteObjectValue("focal_equivalent", FocalEquivalent);
writer.WriteObjectValue("focal_length", FocalLength);
writer.WriteObjectValue("horizontal_resolution", HorizontalResolution);
writer.WriteGuidValue("id", Id);
writer.WriteObjectValue("iso", Iso);
writer.WriteStringValue("lens", Lens);
writer.WriteObjectValue("license_id", LicenseId);
writer.WriteStringValue("license_name", LicenseName);
writer.WriteObjectValue("light_source", LightSource);
writer.WriteStringValue("machine_company_name", MachineCompanyName);
writer.WriteObjectValue("machine_id", MachineId);
writer.WriteStringValue("machine_name", MachineName);
writer.WriteObjectValue("metering_mode", MeteringMode);
writer.WriteObjectValue("orientation", Orientation);
writer.WriteStringValue("original_extension", OriginalExtension);
writer.WriteObjectValue("resolution_unit", ResolutionUnit);
writer.WriteObjectValue("saturation", Saturation);
writer.WriteObjectValue("scene_capture_type", SceneCaptureType);
writer.WriteObjectValue("sensing_method", SensingMethod);
writer.WriteObjectValue("sharpness", Sharpness);
writer.WriteStringValue("software", Software);
writer.WriteStringValue("source", Source);
writer.WriteObjectValue("subject_distance_range", SubjectDistanceRange);
writer.WriteDateTimeOffsetValue("upload_date", UploadDate);
writer.WriteStringValue("user_id", UserId);
writer.WriteObjectValue("vertical_resolution", VerticalResolution);
writer.WriteObjectValue("white_balance", WhiteBalance);
writer.WriteAdditionalData(AdditionalData);
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_colorspace : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(ColorSpace != null)
{
return ColorSpace.GetFieldDeserializers();
}
else if(MachinePhotoDtoColorspaceMember1 != null)
{
return MachinePhotoDtoColorspaceMember1.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(ColorSpace != null)
{
writer.WriteObjectValue(null, ColorSpace);
}
else if(MachinePhotoDtoColorspaceMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoColorspaceMember1);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_contrast : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(Contrast != null)
{
return Contrast.GetFieldDeserializers();
}
else if(MachinePhotoDtoContrastMember1 != null)
{
return MachinePhotoDtoContrastMember1.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(Contrast != null)
{
writer.WriteObjectValue(null, Contrast);
}
else if(MachinePhotoDtoContrastMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoContrastMember1);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_exposure_method : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(ExposureMode != null)
{
return ExposureMode.GetFieldDeserializers();
}
else if(MachinePhotoDtoExposureMethodMember1 != null)
{
return MachinePhotoDtoExposureMethodMember1.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(ExposureMode != null)
{
writer.WriteObjectValue(null, ExposureMode);
}
else if(MachinePhotoDtoExposureMethodMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoExposureMethodMember1);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_exposure_program : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(ExposureProgram != null)
{
return ExposureProgram.GetFieldDeserializers();
}
else if(MachinePhotoDtoExposureProgramMember1 != null)
{
return MachinePhotoDtoExposureProgramMember1.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(ExposureProgram != null)
{
writer.WriteObjectValue(null, ExposureProgram);
}
else if(MachinePhotoDtoExposureProgramMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoExposureProgramMember1);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_flash : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(Flash != null)
{
return Flash.GetFieldDeserializers();
}
else if(MachinePhotoDtoFlashMember1 != null)
{
return MachinePhotoDtoFlashMember1.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(Flash != null)
{
writer.WriteObjectValue(null, Flash);
}
else if(MachinePhotoDtoFlashMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoFlashMember1);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_light_source : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(LightSource != null)
{
return LightSource.GetFieldDeserializers();
}
else if(MachinePhotoDtoLightSourceMember1 != null)
{
return MachinePhotoDtoLightSourceMember1.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(LightSource != null)
{
writer.WriteObjectValue(null, LightSource);
}
else if(MachinePhotoDtoLightSourceMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoLightSourceMember1);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_metering_mode : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoMeteringModeMember1 != null)
{
return MachinePhotoDtoMeteringModeMember1.GetFieldDeserializers();
}
else if(MeteringMode != null)
{
return MeteringMode.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoMeteringModeMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoMeteringModeMember1);
}
else if(MeteringMode != null)
{
writer.WriteObjectValue(null, MeteringMode);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_orientation : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoOrientationMember1 != null)
{
return MachinePhotoDtoOrientationMember1.GetFieldDeserializers();
}
else if(Orientation != null)
{
return Orientation.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoOrientationMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoOrientationMember1);
}
else if(Orientation != null)
{
writer.WriteObjectValue(null, Orientation);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_resolution_unit : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoResolutionUnitMember1 != null)
{
return MachinePhotoDtoResolutionUnitMember1.GetFieldDeserializers();
}
else if(ResolutionUnit != null)
{
return ResolutionUnit.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoResolutionUnitMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoResolutionUnitMember1);
}
else if(ResolutionUnit != null)
{
writer.WriteObjectValue(null, ResolutionUnit);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_saturation : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoSaturationMember1 != null)
{
return MachinePhotoDtoSaturationMember1.GetFieldDeserializers();
}
else if(Saturation != null)
{
return Saturation.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoSaturationMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoSaturationMember1);
}
else if(Saturation != null)
{
writer.WriteObjectValue(null, Saturation);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_scene_capture_type : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoSceneCaptureTypeMember1 != null)
{
return MachinePhotoDtoSceneCaptureTypeMember1.GetFieldDeserializers();
}
else if(SceneCaptureType != null)
{
return SceneCaptureType.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoSceneCaptureTypeMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoSceneCaptureTypeMember1);
}
else if(SceneCaptureType != null)
{
writer.WriteObjectValue(null, SceneCaptureType);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_sensing_method : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoSensingMethodMember1 != null)
{
return MachinePhotoDtoSensingMethodMember1.GetFieldDeserializers();
}
else if(SensingMethod != null)
{
return SensingMethod.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoSensingMethodMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoSensingMethodMember1);
}
else if(SensingMethod != null)
{
writer.WriteObjectValue(null, SensingMethod);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_sharpness : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoSharpnessMember1 != null)
{
return MachinePhotoDtoSharpnessMember1.GetFieldDeserializers();
}
else if(Sharpness != null)
{
return Sharpness.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoSharpnessMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoSharpnessMember1);
}
else if(Sharpness != null)
{
writer.WriteObjectValue(null, Sharpness);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_subject_distance_range : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoSubjectDistanceRangeMember1 != null)
{
return MachinePhotoDtoSubjectDistanceRangeMember1.GetFieldDeserializers();
}
else if(SubjectDistanceRange != null)
{
return SubjectDistanceRange.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoSubjectDistanceRangeMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoSubjectDistanceRangeMember1);
}
else if(SubjectDistanceRange != null)
{
writer.WriteObjectValue(null, SubjectDistanceRange);
}
}
}
///
/// Composed type wrapper for classes ,
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class MachinePhotoDto_white_balance : IComposedTypeWrapper, IParsable
{
/// Composed type representation for type
#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
/// Composed type representation for type
#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
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// A
/// The parse node to use to read the discriminator value and create the object
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;
}
///
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers()
{
if(MachinePhotoDtoWhiteBalanceMember1 != null)
{
return MachinePhotoDtoWhiteBalanceMember1.GetFieldDeserializers();
}
else if(WhiteBalance != null)
{
return WhiteBalance.GetFieldDeserializers();
}
return new Dictionary>();
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
if(MachinePhotoDtoWhiteBalanceMember1 != null)
{
writer.WriteObjectValue(null, MachinePhotoDtoWhiteBalanceMember1);
}
else if(WhiteBalance != null)
{
writer.WriteObjectValue(null, WhiteBalance);
}
}
}
}
}
#pragma warning restore CS0618