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>
2025-11-16 02:12:29 +00:00
public int? Colorspace { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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>
2025-11-16 02:12:29 +00:00
public int? Contrast { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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>
2025-11-16 02:12:29 +00:00
public int? ExposureMethod { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The exposure_program property</summary>
2025-11-16 02:12:29 +00:00
public int? ExposureProgram { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The flash property</summary>
2025-11-16 02:12:29 +00:00
public int? Flash { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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>
2025-11-16 02:12:29 +00:00
public int? LightSource { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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>
2025-11-16 02:12:29 +00:00
public int? MeteringMode { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The orientation property</summary>
2025-11-16 02:12:29 +00:00
public int? Orientation { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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>
2025-11-16 02:12:29 +00:00
public int? ResolutionUnit { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The saturation property</summary>
2025-11-16 02:12:29 +00:00
public int? Saturation { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The scene_capture_type property</summary>
2025-11-16 02:12:29 +00:00
public int? SceneCaptureType { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The sensing_method property</summary>
2025-11-16 02:12:29 +00:00
public int? SensingMethod { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <summary>The sharpness property</summary>
2025-11-16 02:12:29 +00:00
public int? Sharpness { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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>
2025-11-16 02:12:29 +00:00
public byte? SubjectDistanceRange { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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>
2025-11-16 02:12:29 +00:00
public int? WhiteBalance { get ; set ; }
2025-11-14 13:33:27 +00:00
/// <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 ( ) ; } } ,
2025-11-16 02:12:29 +00:00
{ "colorspace" , n = > { Colorspace = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "comments" , n = > { Comments = n . GetStringValue ( ) ; } } ,
2025-11-16 02:12:29 +00:00
{ "contrast" , n = > { Contrast = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "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-16 02:12:29 +00:00
{ "exposure_method" , n = > { ExposureMethod = n . GetIntValue ( ) ; } } ,
{ "exposure_program" , n = > { ExposureProgram = n . GetIntValue ( ) ; } } ,
{ "flash" , n = > { Flash = n . GetIntValue ( ) ; } } ,
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 ( ) ; } } ,
2025-11-16 02:12:29 +00:00
{ "light_source" , n = > { LightSource = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "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 ( ) ; } } ,
2025-11-16 02:12:29 +00:00
{ "metering_mode" , n = > { MeteringMode = n . GetIntValue ( ) ; } } ,
{ "orientation" , n = > { Orientation = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "original_extension" , n = > { OriginalExtension = n . GetStringValue ( ) ; } } ,
2025-11-16 02:12:29 +00:00
{ "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 ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "software" , n = > { Software = n . GetStringValue ( ) ; } } ,
{ "source" , n = > { Source = n . GetStringValue ( ) ; } } ,
2025-11-16 02:12:29 +00:00
{ "subject_distance_range" , n = > { SubjectDistanceRange = n . GetByteValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
{ "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-16 02:12:29 +00:00
{ "white_balance" , n = > { WhiteBalance = n . GetIntValue ( ) ; } } ,
2025-11-14 13:33:27 +00:00
} ;
}
/// <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 ) ;
2025-11-16 02:12:29 +00:00
writer . WriteIntValue ( "colorspace" , Colorspace ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "comments" , Comments ) ;
2025-11-16 02:12:29 +00:00
writer . WriteIntValue ( "contrast" , Contrast ) ;
2025-11-14 13:33:27 +00:00
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-16 02:12:29 +00:00
writer . WriteIntValue ( "exposure_method" , ExposureMethod ) ;
writer . WriteIntValue ( "exposure_program" , ExposureProgram ) ;
writer . WriteIntValue ( "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 ) ;
2025-11-16 02:12:29 +00:00
writer . WriteIntValue ( "light_source" , LightSource ) ;
2025-11-14 13:33:27 +00:00
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 ) ;
2025-11-16 02:12:29 +00:00
writer . WriteIntValue ( "metering_mode" , MeteringMode ) ;
writer . WriteIntValue ( "orientation" , Orientation ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "original_extension" , OriginalExtension ) ;
2025-11-16 02:12:29 +00:00
writer . WriteIntValue ( "resolution_unit" , ResolutionUnit ) ;
writer . WriteIntValue ( "saturation" , Saturation ) ;
writer . WriteIntValue ( "scene_capture_type" , SceneCaptureType ) ;
writer . WriteIntValue ( "sensing_method" , SensingMethod ) ;
writer . WriteIntValue ( "sharpness" , Sharpness ) ;
2025-11-14 13:33:27 +00:00
writer . WriteStringValue ( "software" , Software ) ;
writer . WriteStringValue ( "source" , Source ) ;
2025-11-16 02:12:29 +00:00
writer . WriteByteValue ( "subject_distance_range" , SubjectDistanceRange ) ;
2025-11-14 13:33:27 +00:00
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-16 02:12:29 +00:00
writer . WriteIntValue ( "white_balance" , WhiteBalance ) ;
2025-11-14 13:33:27 +00:00
writer . WriteAdditionalData ( AdditionalData ) ;
}
}
}
#pragma warning restore CS0618