//
#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
public double? Aperture { get; set; }
/// 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
public int? Colorspace { get; set; }
/// 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
public int? Contrast { get; set; }
/// The creation_date property
public DateTimeOffset? CreationDate { get; set; }
/// The digital_zoom property
public double? DigitalZoom { get; set; }
/// 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
public double? Exposure { get; set; }
/// The exposure_method property
public int? ExposureMethod { get; set; }
/// The exposure_program property
public int? ExposureProgram { get; set; }
/// The flash property
public int? Flash { get; set; }
/// The focal property
public double? Focal { get; set; }
/// The focal_equivalent property
public double? FocalEquivalent { get; set; }
/// The focal_length property
public double? FocalLength { get; set; }
/// The horizontal_resolution property
public double? HorizontalResolution { get; set; }
/// The id property
public Guid? Id { get; set; }
/// The iso property
public int? Iso { get; set; }
/// 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
public int? LicenseId { get; set; }
/// 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
public int? LightSource { get; set; }
/// 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
public int? MachineId { get; set; }
/// 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
public int? MeteringMode { get; set; }
/// The orientation property
public int? Orientation { get; set; }
/// 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
public int? ResolutionUnit { get; set; }
/// The saturation property
public int? Saturation { get; set; }
/// The scene_capture_type property
public int? SceneCaptureType { get; set; }
/// The sensing_method property
public int? SensingMethod { get; set; }
/// The sharpness property
public int? Sharpness { get; set; }
/// 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
public byte? SubjectDistanceRange { get; set; }
/// 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
public double? VerticalResolution { get; set; }
/// The white_balance property
public int? WhiteBalance { get; set; }
///
/// 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.GetDoubleValue(); } },
{ "author", n => { Author = n.GetStringValue(); } },
{ "camera_manufacturer", n => { CameraManufacturer = n.GetStringValue(); } },
{ "camera_model", n => { CameraModel = n.GetStringValue(); } },
{ "colorspace", n => { Colorspace = n.GetIntValue(); } },
{ "comments", n => { Comments = n.GetStringValue(); } },
{ "contrast", n => { Contrast = n.GetIntValue(); } },
{ "creation_date", n => { CreationDate = n.GetDateTimeOffsetValue(); } },
{ "digital_zoom", n => { DigitalZoom = n.GetDoubleValue(); } },
{ "exif_version", n => { ExifVersion = n.GetStringValue(); } },
{ "exposure", n => { Exposure = n.GetDoubleValue(); } },
{ "exposure_method", n => { ExposureMethod = n.GetIntValue(); } },
{ "exposure_program", n => { ExposureProgram = n.GetIntValue(); } },
{ "flash", n => { Flash = n.GetIntValue(); } },
{ "focal", n => { Focal = n.GetDoubleValue(); } },
{ "focal_equivalent", n => { FocalEquivalent = n.GetDoubleValue(); } },
{ "focal_length", n => { FocalLength = n.GetDoubleValue(); } },
{ "horizontal_resolution", n => { HorizontalResolution = n.GetDoubleValue(); } },
{ "id", n => { Id = n.GetGuidValue(); } },
{ "iso", n => { Iso = n.GetIntValue(); } },
{ "lens", n => { Lens = n.GetStringValue(); } },
{ "license_id", n => { LicenseId = n.GetIntValue(); } },
{ "license_name", n => { LicenseName = n.GetStringValue(); } },
{ "light_source", n => { LightSource = n.GetIntValue(); } },
{ "machine_company_name", n => { MachineCompanyName = n.GetStringValue(); } },
{ "machine_id", n => { MachineId = n.GetIntValue(); } },
{ "machine_name", n => { MachineName = n.GetStringValue(); } },
{ "metering_mode", n => { MeteringMode = n.GetIntValue(); } },
{ "orientation", n => { Orientation = n.GetIntValue(); } },
{ "original_extension", n => { OriginalExtension = n.GetStringValue(); } },
{ "resolution_unit", n => { ResolutionUnit = n.GetIntValue(); } },
{ "saturation", n => { Saturation = n.GetIntValue(); } },
{ "scene_capture_type", n => { SceneCaptureType = n.GetIntValue(); } },
{ "sensing_method", n => { SensingMethod = n.GetIntValue(); } },
{ "sharpness", n => { Sharpness = n.GetIntValue(); } },
{ "software", n => { Software = n.GetStringValue(); } },
{ "source", n => { Source = n.GetStringValue(); } },
{ "subject_distance_range", n => { SubjectDistanceRange = n.GetByteValue(); } },
{ "upload_date", n => { UploadDate = n.GetDateTimeOffsetValue(); } },
{ "user_id", n => { UserId = n.GetStringValue(); } },
{ "vertical_resolution", n => { VerticalResolution = n.GetDoubleValue(); } },
{ "white_balance", n => { WhiteBalance = n.GetIntValue(); } },
};
}
///
/// 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.WriteDoubleValue("aperture", Aperture);
writer.WriteStringValue("author", Author);
writer.WriteStringValue("camera_manufacturer", CameraManufacturer);
writer.WriteStringValue("camera_model", CameraModel);
writer.WriteIntValue("colorspace", Colorspace);
writer.WriteStringValue("comments", Comments);
writer.WriteIntValue("contrast", Contrast);
writer.WriteDateTimeOffsetValue("creation_date", CreationDate);
writer.WriteDoubleValue("digital_zoom", DigitalZoom);
writer.WriteStringValue("exif_version", ExifVersion);
writer.WriteDoubleValue("exposure", Exposure);
writer.WriteIntValue("exposure_method", ExposureMethod);
writer.WriteIntValue("exposure_program", ExposureProgram);
writer.WriteIntValue("flash", Flash);
writer.WriteDoubleValue("focal", Focal);
writer.WriteDoubleValue("focal_equivalent", FocalEquivalent);
writer.WriteDoubleValue("focal_length", FocalLength);
writer.WriteDoubleValue("horizontal_resolution", HorizontalResolution);
writer.WriteGuidValue("id", Id);
writer.WriteIntValue("iso", Iso);
writer.WriteStringValue("lens", Lens);
writer.WriteIntValue("license_id", LicenseId);
writer.WriteStringValue("license_name", LicenseName);
writer.WriteIntValue("light_source", LightSource);
writer.WriteStringValue("machine_company_name", MachineCompanyName);
writer.WriteIntValue("machine_id", MachineId);
writer.WriteStringValue("machine_name", MachineName);
writer.WriteIntValue("metering_mode", MeteringMode);
writer.WriteIntValue("orientation", Orientation);
writer.WriteStringValue("original_extension", OriginalExtension);
writer.WriteIntValue("resolution_unit", ResolutionUnit);
writer.WriteIntValue("saturation", Saturation);
writer.WriteIntValue("scene_capture_type", SceneCaptureType);
writer.WriteIntValue("sensing_method", SensingMethod);
writer.WriteIntValue("sharpness", Sharpness);
writer.WriteStringValue("software", Software);
writer.WriteStringValue("source", Source);
writer.WriteByteValue("subject_distance_range", SubjectDistanceRange);
writer.WriteDateTimeOffsetValue("upload_date", UploadDate);
writer.WriteStringValue("user_id", UserId);
writer.WriteDoubleValue("vertical_resolution", VerticalResolution);
writer.WriteIntValue("white_balance", WhiteBalance);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618