Files
MusicCast.Net/MusicCast.Net.Api.Client/Models/GetDeviceInfoResponse.cs
2025-05-24 20:47:01 +02:00

152 lines
6.7 KiB
C#

// <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 MusicCast.Net.Api.Client.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class GetDeviceInfoResponse : 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 api_version property</summary>
public double? ApiVersion { get; set; }
/// <summary>The destination property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Destination { get; set; }
#nullable restore
#else
public string Destination { get; set; }
#endif
/// <summary>The device_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? DeviceId { get; set; }
#nullable restore
#else
public string DeviceId { get; set; }
#endif
/// <summary>The model_name property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ModelName { get; set; }
#nullable restore
#else
public string ModelName { get; set; }
#endif
/// <summary>The netmodule_checksum property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? NetmoduleChecksum { get; set; }
#nullable restore
#else
public string NetmoduleChecksum { get; set; }
#endif
/// <summary>The netmodule_generation property</summary>
public int? NetmoduleGeneration { get; set; }
/// <summary>The netmodule_version property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? NetmoduleVersion { get; set; }
#nullable restore
#else
public string NetmoduleVersion { get; set; }
#endif
/// <summary>The operation_mode property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OperationMode { get; set; }
#nullable restore
#else
public string OperationMode { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The system_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? SystemId { get; set; }
#nullable restore
#else
public string SystemId { get; set; }
#endif
/// <summary>The system_version property</summary>
public int? SystemVersion { get; set; }
/// <summary>The update_error_code property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UpdateErrorCode { get; set; }
#nullable restore
#else
public string UpdateErrorCode { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse"/> and sets the default values.
/// </summary>
public GetDeviceInfoResponse()
{
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "api_version", n => { ApiVersion = n.GetDoubleValue(); } },
{ "destination", n => { Destination = n.GetStringValue(); } },
{ "device_id", n => { DeviceId = n.GetStringValue(); } },
{ "model_name", n => { ModelName = n.GetStringValue(); } },
{ "netmodule_checksum", n => { NetmoduleChecksum = n.GetStringValue(); } },
{ "netmodule_generation", n => { NetmoduleGeneration = n.GetIntValue(); } },
{ "netmodule_version", n => { NetmoduleVersion = n.GetStringValue(); } },
{ "operation_mode", n => { OperationMode = n.GetStringValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "system_id", n => { SystemId = n.GetStringValue(); } },
{ "system_version", n => { SystemVersion = n.GetIntValue(); } },
{ "update_error_code", n => { UpdateErrorCode = n.GetStringValue(); } },
};
}
/// <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)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteDoubleValue("api_version", ApiVersion);
writer.WriteStringValue("destination", Destination);
writer.WriteStringValue("device_id", DeviceId);
writer.WriteStringValue("model_name", ModelName);
writer.WriteStringValue("netmodule_checksum", NetmoduleChecksum);
writer.WriteIntValue("netmodule_generation", NetmoduleGeneration);
writer.WriteStringValue("netmodule_version", NetmoduleVersion);
writer.WriteStringValue("operation_mode", OperationMode);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteStringValue("system_id", SystemId);
writer.WriteIntValue("system_version", SystemVersion);
writer.WriteStringValue("update_error_code", UpdateErrorCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618