Add api client project

This commit is contained in:
2025-05-24 20:47:01 +02:00
parent a80465c6c1
commit 9904616751
112 changed files with 10946 additions and 0 deletions

View File

@@ -0,0 +1,79 @@
// <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 Audio : 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 error property</summary>
public int? Error { get; set; }
/// <summary>The format property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Format { get; set; }
#nullable restore
#else
public string Format { get; set; }
#endif
/// <summary>The fs property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Fs { get; set; }
#nullable restore
#else
public string Fs { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Audio"/> and sets the default values.
/// </summary>
public Audio()
{
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.Audio"/></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.Audio CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Audio();
}
/// <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>>
{
{ "error", n => { Error = n.GetIntValue(); } },
{ "format", n => { Format = n.GetStringValue(); } },
{ "fs", n => { Fs = 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.WriteIntValue("error", Error);
writer.WriteStringValue("format", Format);
writer.WriteStringValue("fs", Fs);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,65 @@
// <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 BaseResponse : 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 response_code property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ResponseCode { get; set; }
#nullable restore
#else
public string ResponseCode { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/> and sets the default values.
/// </summary>
public BaseResponse()
{
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.BaseResponse"/></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.BaseResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.BaseResponse();
}
/// <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>>
{
{ "response_code", n => { ResponseCode = 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.WriteStringValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,59 @@
// <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 Ccs : 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 supported property</summary>
public bool? Supported { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Ccs"/> and sets the default values.
/// </summary>
public Ccs()
{
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.Ccs"/></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.Ccs CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Ccs();
}
/// <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>>
{
{ "supported", n => { Supported = n.GetBoolValue(); } },
};
}
/// <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.WriteBoolValue("supported", Supported);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,79 @@
// <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 Common : 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 attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The speaker_size property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Speaker_size>? SpeakerSize { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Speaker_size> SpeakerSize { get; set; }
#endif
/// <summary>The swfr_crossover_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<int?>? SwfrCrossoverList { get; set; }
#nullable restore
#else
public List<int?> SwfrCrossoverList { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Common"/> and sets the default values.
/// </summary>
public Common()
{
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.Common"/></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.Common CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Common();
}
/// <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>>
{
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "speaker_size", n => { SpeakerSize = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Speaker_size>(global::MusicCast.Net.Api.Client.Models.Speaker_size.CreateFromDiscriminatorValue)?.AsList(); } },
{ "swfr_crossover_list", n => { SwfrCrossoverList = n.GetCollectionOfPrimitiveValues<int?>()?.AsList(); } },
};
}
/// <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.WriteIntValue("attribute", Attribute);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Speaker_size>("speaker_size", SpeakerSize);
writer.WriteCollectionOfPrimitiveValues<int?>("swfr_crossover_list", SwfrCrossoverList);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,65 @@
// <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 Disklavier : 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 ip_address property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? IpAddress { get; set; }
#nullable restore
#else
public string IpAddress { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Disklavier"/> and sets the default values.
/// </summary>
public Disklavier()
{
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.Disklavier"/></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.Disklavier CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Disklavier();
}
/// <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>>
{
{ "ip_address", n => { IpAddress = 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.WriteStringValue("ip_address", IpAddress);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,83 @@
// <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 Distribution : 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 client_max property</summary>
public int? ClientMax { get; set; }
/// <summary>The compatible_client property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<int?>? CompatibleClient { get; set; }
#nullable restore
#else
public List<int?> CompatibleClient { get; set; }
#endif
/// <summary>The server_zone_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? ServerZoneList { get; set; }
#nullable restore
#else
public List<string> ServerZoneList { get; set; }
#endif
/// <summary>The version property</summary>
public int? Version { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Distribution"/> and sets the default values.
/// </summary>
public Distribution()
{
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.Distribution"/></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.Distribution CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Distribution();
}
/// <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>>
{
{ "client_max", n => { ClientMax = n.GetIntValue(); } },
{ "compatible_client", n => { CompatibleClient = n.GetCollectionOfPrimitiveValues<int?>()?.AsList(); } },
{ "server_zone_list", n => { ServerZoneList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "version", n => { Version = n.GetIntValue(); } },
};
}
/// <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.WriteIntValue("client_max", ClientMax);
writer.WriteCollectionOfPrimitiveValues<int?>("compatible_client", CompatibleClient);
writer.WriteCollectionOfPrimitiveValues<string>("server_zone_list", ServerZoneList);
writer.WriteIntValue("version", Version);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 Front_l : 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 attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The range_step property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Range_step>? RangeStep { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Range_step> RangeStep { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Front_l"/> and sets the default values.
/// </summary>
public Front_l()
{
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.Front_l"/></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.Front_l CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Front_l();
}
/// <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>>
{
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step>(global::MusicCast.Net.Api.Client.Models.Range_step.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteIntValue("attribute", Attribute);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step>("range_step", RangeStep);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 Front_r : 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 attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The range_step property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Range_step1>? RangeStep { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Range_step1> RangeStep { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Front_r"/> and sets the default values.
/// </summary>
public Front_r()
{
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.Front_r"/></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.Front_r CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Front_r();
}
/// <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>>
{
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step1>(global::MusicCast.Net.Api.Client.Models.Range_step1.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteIntValue("attribute", Attribute);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step1>("range_step", RangeStep);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,151 @@
// <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

View File

@@ -0,0 +1,103 @@
// <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 GetDisklavierSettingsResponse : 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 disklavier property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Disklavier? Disklavier { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Disklavier Disklavier { get; set; }
#endif
/// <summary>The enable property</summary>
public bool? Enable { get; set; }
/// <summary>The input property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Input { get; set; }
#nullable restore
#else
public string Input { get; set; }
#endif
/// <summary>The mode property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Mode { get; set; }
#nullable restore
#else
public string Mode { get; set; }
#endif
/// <summary>The pair property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Pair? Pair { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Pair Pair { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse"/> and sets the default values.
/// </summary>
public GetDisklavierSettingsResponse()
{
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.GetDisklavierSettingsResponse"/></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.GetDisklavierSettingsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse();
}
/// <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>>
{
{ "disklavier", n => { Disklavier = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Disklavier>(global::MusicCast.Net.Api.Client.Models.Disklavier.CreateFromDiscriminatorValue); } },
{ "enable", n => { Enable = n.GetBoolValue(); } },
{ "input", n => { Input = n.GetStringValue(); } },
{ "mode", n => { Mode = n.GetStringValue(); } },
{ "pair", n => { Pair = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Pair>(global::MusicCast.Net.Api.Client.Models.Pair.CreateFromDiscriminatorValue); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
};
}
/// <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.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Disklavier>("disklavier", Disklavier);
writer.WriteBoolValue("enable", Enable);
writer.WriteStringValue("input", Input);
writer.WriteStringValue("mode", Mode);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Pair>("pair", Pair);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,109 @@
// <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 GetDistributionInfoResponse : 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 client_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? ClientList { get; set; }
#nullable restore
#else
public UntypedNode ClientList { get; set; }
#endif
/// <summary>The group_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? GroupId { get; set; }
#nullable restore
#else
public string GroupId { get; set; }
#endif
/// <summary>The group_name property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? GroupName { get; set; }
#nullable restore
#else
public string GroupName { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The role property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Role { get; set; }
#nullable restore
#else
public string Role { get; set; }
#endif
/// <summary>The server_zone property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ServerZone { get; set; }
#nullable restore
#else
public string ServerZone { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse"/> and sets the default values.
/// </summary>
public GetDistributionInfoResponse()
{
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.GetDistributionInfoResponse"/></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.GetDistributionInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse();
}
/// <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>>
{
{ "client_list", n => { ClientList = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "group_id", n => { GroupId = n.GetStringValue(); } },
{ "group_name", n => { GroupName = n.GetStringValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "role", n => { Role = n.GetStringValue(); } },
{ "server_zone", n => { ServerZone = 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.WriteObjectValue<UntypedNode>("client_list", ClientList);
writer.WriteStringValue("group_id", GroupId);
writer.WriteStringValue("group_name", GroupName);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteStringValue("role", Role);
writer.WriteStringValue("server_zone", ServerZone);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,119 @@
// <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 GetFeaturesResponse : 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 ccs property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Ccs? Ccs { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Ccs Ccs { get; set; }
#endif
/// <summary>The distribution property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Distribution? Distribution { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Distribution Distribution { get; set; }
#endif
/// <summary>The netusb property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Netusb? Netusb { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Netusb Netusb { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The system property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.System? System { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.System System { get; set; }
#endif
/// <summary>The tuner property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Tuner? Tuner { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Tuner Tuner { get; set; }
#endif
/// <summary>The zone property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Zone>? Zone { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Zone> Zone { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse"/> and sets the default values.
/// </summary>
public GetFeaturesResponse()
{
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.GetFeaturesResponse"/></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.GetFeaturesResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse();
}
/// <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>>
{
{ "ccs", n => { Ccs = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Ccs>(global::MusicCast.Net.Api.Client.Models.Ccs.CreateFromDiscriminatorValue); } },
{ "distribution", n => { Distribution = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Distribution>(global::MusicCast.Net.Api.Client.Models.Distribution.CreateFromDiscriminatorValue); } },
{ "netusb", n => { Netusb = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Netusb>(global::MusicCast.Net.Api.Client.Models.Netusb.CreateFromDiscriminatorValue); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "system", n => { System = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.System>(global::MusicCast.Net.Api.Client.Models.System.CreateFromDiscriminatorValue); } },
{ "tuner", n => { Tuner = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Tuner>(global::MusicCast.Net.Api.Client.Models.Tuner.CreateFromDiscriminatorValue); } },
{ "zone", n => { Zone = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone>(global::MusicCast.Net.Api.Client.Models.Zone.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Ccs>("ccs", Ccs);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Distribution>("distribution", Distribution);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Netusb>("netusb", Netusb);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.System>("system", System);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Tuner>("tuner", Tuner);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone>("zone", Zone);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,75 @@
// <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 GetFuncStatusResponse : 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 auto_power_standby property</summary>
public bool? AutoPowerStandby { get; set; }
/// <summary>The headphone property</summary>
public bool? Headphone { get; set; }
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The speaker_a property</summary>
public bool? SpeakerA { get; set; }
/// <summary>The speaker_b property</summary>
public bool? SpeakerB { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse"/> and sets the default values.
/// </summary>
public GetFuncStatusResponse()
{
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.GetFuncStatusResponse"/></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.GetFuncStatusResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse();
}
/// <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>>
{
{ "auto_power_standby", n => { AutoPowerStandby = n.GetBoolValue(); } },
{ "headphone", n => { Headphone = n.GetBoolValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "speaker_a", n => { SpeakerA = n.GetBoolValue(); } },
{ "speaker_b", n => { SpeakerB = n.GetBoolValue(); } },
};
}
/// <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.WriteBoolValue("auto_power_standby", AutoPowerStandby);
writer.WriteBoolValue("headphone", Headphone);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteBoolValue("speaker_a", SpeakerA);
writer.WriteBoolValue("speaker_b", SpeakerB);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,105 @@
// <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 GetListInfoResponse : 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 index property</summary>
public int? Index { get; set; }
/// <summary>The input property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Input { get; set; }
#nullable restore
#else
public string Input { get; set; }
#endif
/// <summary>The list_info property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.List_info>? ListInfo { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.List_info> ListInfo { get; set; }
#endif
/// <summary>The max_line property</summary>
public int? MaxLine { get; set; }
/// <summary>The menu_layer property</summary>
public int? MenuLayer { get; set; }
/// <summary>The menu_name property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? MenuName { get; set; }
#nullable restore
#else
public string MenuName { get; set; }
#endif
/// <summary>The playing_index property</summary>
public int? PlayingIndex { get; set; }
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetListInfoResponse"/> and sets the default values.
/// </summary>
public GetListInfoResponse()
{
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.GetListInfoResponse"/></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.GetListInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetListInfoResponse();
}
/// <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>>
{
{ "index", n => { Index = n.GetIntValue(); } },
{ "input", n => { Input = n.GetStringValue(); } },
{ "list_info", n => { ListInfo = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.List_info>(global::MusicCast.Net.Api.Client.Models.List_info.CreateFromDiscriminatorValue)?.AsList(); } },
{ "max_line", n => { MaxLine = n.GetIntValue(); } },
{ "menu_layer", n => { MenuLayer = n.GetIntValue(); } },
{ "menu_name", n => { MenuName = n.GetStringValue(); } },
{ "playing_index", n => { PlayingIndex = n.GetIntValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
};
}
/// <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.WriteIntValue("index", Index);
writer.WriteStringValue("input", Input);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.List_info>("list_info", ListInfo);
writer.WriteIntValue("max_line", MaxLine);
writer.WriteIntValue("menu_layer", MenuLayer);
writer.WriteStringValue("menu_name", MenuName);
writer.WriteIntValue("playing_index", PlayingIndex);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,89 @@
// <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 GetLocationInfoResponse : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The name property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Name { get; set; }
#nullable restore
#else
public string Name { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The zone_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Zone_list? ZoneList { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Zone_list ZoneList { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse"/> and sets the default values.
/// </summary>
public GetLocationInfoResponse()
{
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.GetLocationInfoResponse"/></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.GetLocationInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "name", n => { Name = n.GetStringValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "zone_list", n => { ZoneList = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Zone_list>(global::MusicCast.Net.Api.Client.Models.Zone_list.CreateFromDiscriminatorValue); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("id", Id);
writer.WriteStringValue("name", Name);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Zone_list>("zone_list", ZoneList);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 GetMcPlaylistNameResponse : 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 name_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? NameList { get; set; }
#nullable restore
#else
public List<string> NameList { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse"/> and sets the default values.
/// </summary>
public GetMcPlaylistNameResponse()
{
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.GetMcPlaylistNameResponse"/></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.GetMcPlaylistNameResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse();
}
/// <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>>
{
{ "name_list", n => { NameList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
};
}
/// <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.WriteCollectionOfPrimitiveValues<string>("name_list", NameList);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,89 @@
// <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 GetNameTextResponse : 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 input_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Input_list2>? InputList { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Input_list2> InputList { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The sound_program_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? SoundProgramList { get; set; }
#nullable restore
#else
public UntypedNode SoundProgramList { get; set; }
#endif
/// <summary>The zone_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Zone_list2>? ZoneList { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Zone_list2> ZoneList { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetNameTextResponse"/> and sets the default values.
/// </summary>
public GetNameTextResponse()
{
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.GetNameTextResponse"/></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.GetNameTextResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetNameTextResponse();
}
/// <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>>
{
{ "input_list", n => { InputList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list2>(global::MusicCast.Net.Api.Client.Models.Input_list2.CreateFromDiscriminatorValue)?.AsList(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "sound_program_list", n => { SoundProgramList = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "zone_list", n => { ZoneList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list2>(global::MusicCast.Net.Api.Client.Models.Zone_list2.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list2>("input_list", InputList);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteObjectValue<UntypedNode>("sound_program_list", SoundProgramList);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list2>("zone_list", ZoneList);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 GetNetworkStandbyResponse : 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 network_standby property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? NetworkStandby { get; set; }
#nullable restore
#else
public string NetworkStandby { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse"/> and sets the default values.
/// </summary>
public GetNetworkStandbyResponse()
{
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.GetNetworkStandbyResponse"/></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.GetNetworkStandbyResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse();
}
/// <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>>
{
{ "network_standby", n => { NetworkStandby = n.GetStringValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("network_standby", NetworkStandby);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,199 @@
// <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 GetPlayInfoResponse : 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 album property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Album { get; set; }
#nullable restore
#else
public string Album { get; set; }
#endif
/// <summary>The albumart_id property</summary>
public int? AlbumartId { get; set; }
/// <summary>The albumart_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? AlbumartUrl { get; set; }
#nullable restore
#else
public string AlbumartUrl { get; set; }
#endif
/// <summary>The artist property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Artist { get; set; }
#nullable restore
#else
public string Artist { get; set; }
#endif
/// <summary>The attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The auto_stopped property</summary>
public bool? AutoStopped { get; set; }
/// <summary>The input property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Input { get; set; }
#nullable restore
#else
public string Input { get; set; }
#endif
/// <summary>The playback property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Playback { get; set; }
#nullable restore
#else
public string Playback { get; set; }
#endif
/// <summary>The play_queue_type property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? PlayQueueType { get; set; }
#nullable restore
#else
public string PlayQueueType { get; set; }
#endif
/// <summary>The play_time property</summary>
public int? PlayTime { get; set; }
/// <summary>The repeat property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Repeat { get; set; }
#nullable restore
#else
public string Repeat { get; set; }
#endif
/// <summary>The repeat_available property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? RepeatAvailable { get; set; }
#nullable restore
#else
public List<string> RepeatAvailable { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The shuffle property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Shuffle { get; set; }
#nullable restore
#else
public string Shuffle { get; set; }
#endif
/// <summary>The shuffle_available property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? ShuffleAvailable { get; set; }
#nullable restore
#else
public List<string> ShuffleAvailable { get; set; }
#endif
/// <summary>The total_time property</summary>
public int? TotalTime { get; set; }
/// <summary>The track property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Track { get; set; }
#nullable restore
#else
public string Track { get; set; }
#endif
/// <summary>The usb_devicetype property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UsbDevicetype { get; set; }
#nullable restore
#else
public string UsbDevicetype { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse"/> and sets the default values.
/// </summary>
public GetPlayInfoResponse()
{
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.GetPlayInfoResponse"/></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.GetPlayInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse();
}
/// <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>>
{
{ "album", n => { Album = n.GetStringValue(); } },
{ "albumart_id", n => { AlbumartId = n.GetIntValue(); } },
{ "albumart_url", n => { AlbumartUrl = n.GetStringValue(); } },
{ "artist", n => { Artist = n.GetStringValue(); } },
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "auto_stopped", n => { AutoStopped = n.GetBoolValue(); } },
{ "input", n => { Input = n.GetStringValue(); } },
{ "play_queue_type", n => { PlayQueueType = n.GetStringValue(); } },
{ "play_time", n => { PlayTime = n.GetIntValue(); } },
{ "playback", n => { Playback = n.GetStringValue(); } },
{ "repeat", n => { Repeat = n.GetStringValue(); } },
{ "repeat_available", n => { RepeatAvailable = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "shuffle", n => { Shuffle = n.GetStringValue(); } },
{ "shuffle_available", n => { ShuffleAvailable = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "total_time", n => { TotalTime = n.GetIntValue(); } },
{ "track", n => { Track = n.GetStringValue(); } },
{ "usb_devicetype", n => { UsbDevicetype = 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.WriteStringValue("album", Album);
writer.WriteIntValue("albumart_id", AlbumartId);
writer.WriteStringValue("albumart_url", AlbumartUrl);
writer.WriteStringValue("artist", Artist);
writer.WriteIntValue("attribute", Attribute);
writer.WriteBoolValue("auto_stopped", AutoStopped);
writer.WriteStringValue("input", Input);
writer.WriteStringValue("playback", Playback);
writer.WriteStringValue("play_queue_type", PlayQueueType);
writer.WriteIntValue("play_time", PlayTime);
writer.WriteStringValue("repeat", Repeat);
writer.WriteCollectionOfPrimitiveValues<string>("repeat_available", RepeatAvailable);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteStringValue("shuffle", Shuffle);
writer.WriteCollectionOfPrimitiveValues<string>("shuffle_available", ShuffleAvailable);
writer.WriteIntValue("total_time", TotalTime);
writer.WriteStringValue("track", Track);
writer.WriteStringValue("usb_devicetype", UsbDevicetype);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,91 @@
// <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 GetPlayQueueResponse : 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 index property</summary>
public int? Index { get; set; }
/// <summary>The max_line property</summary>
public int? MaxLine { get; set; }
/// <summary>The playing_index property</summary>
public int? PlayingIndex { get; set; }
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The track_info property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Track_info>? TrackInfo { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Track_info> TrackInfo { get; set; }
#endif
/// <summary>The type property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Type { get; set; }
#nullable restore
#else
public string Type { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse"/> and sets the default values.
/// </summary>
public GetPlayQueueResponse()
{
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.GetPlayQueueResponse"/></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.GetPlayQueueResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse();
}
/// <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>>
{
{ "index", n => { Index = n.GetIntValue(); } },
{ "max_line", n => { MaxLine = n.GetIntValue(); } },
{ "playing_index", n => { PlayingIndex = n.GetIntValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "track_info", n => { TrackInfo = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Track_info>(global::MusicCast.Net.Api.Client.Models.Track_info.CreateFromDiscriminatorValue)?.AsList(); } },
{ "type", n => { Type = 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.WriteIntValue("index", Index);
writer.WriteIntValue("max_line", MaxLine);
writer.WriteIntValue("playing_index", PlayingIndex);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Track_info>("track_info", TrackInfo);
writer.WriteStringValue("type", Type);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 GetRecentInfoResponse : 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 recent_info property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Recent_info>? RecentInfo { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Recent_info> RecentInfo { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse"/> and sets the default values.
/// </summary>
public GetRecentInfoResponse()
{
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.GetRecentInfoResponse"/></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.GetRecentInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse();
}
/// <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>>
{
{ "recent_info", n => { RecentInfo = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Recent_info>(global::MusicCast.Net.Api.Client.Models.Recent_info.CreateFromDiscriminatorValue)?.AsList(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
};
}
/// <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.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Recent_info>("recent_info", RecentInfo);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 GetSignalInfoResponse : 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 audio property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Audio? Audio { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Audio Audio { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse"/> and sets the default values.
/// </summary>
public GetSignalInfoResponse()
{
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.GetSignalInfoResponse"/></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.GetSignalInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse();
}
/// <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>>
{
{ "audio", n => { Audio = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Audio>(global::MusicCast.Net.Api.Client.Models.Audio.CreateFromDiscriminatorValue); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
};
}
/// <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.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Audio>("audio", Audio);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,133 @@
// <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 GetStatusResponse : 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 disable_flags property</summary>
public int? DisableFlags { get; set; }
/// <summary>The distribution_enable property</summary>
public bool? DistributionEnable { get; set; }
/// <summary>The input property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Input { get; set; }
#nullable restore
#else
public string Input { get; set; }
#endif
/// <summary>The link_audio_delay property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? LinkAudioDelay { get; set; }
#nullable restore
#else
public string LinkAudioDelay { get; set; }
#endif
/// <summary>The link_audio_quality property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? LinkAudioQuality { get; set; }
#nullable restore
#else
public string LinkAudioQuality { get; set; }
#endif
/// <summary>The link_control property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? LinkControl { get; set; }
#nullable restore
#else
public string LinkControl { get; set; }
#endif
/// <summary>The max_volume property</summary>
public int? MaxVolume { get; set; }
/// <summary>The mute property</summary>
public bool? Mute { get; set; }
/// <summary>The power property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Power { get; set; }
#nullable restore
#else
public string Power { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The sleep property</summary>
public int? Sleep { get; set; }
/// <summary>The volume property</summary>
public int? Volume { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetStatusResponse"/> and sets the default values.
/// </summary>
public GetStatusResponse()
{
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.GetStatusResponse"/></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.GetStatusResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetStatusResponse();
}
/// <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>>
{
{ "disable_flags", n => { DisableFlags = n.GetIntValue(); } },
{ "distribution_enable", n => { DistributionEnable = n.GetBoolValue(); } },
{ "input", n => { Input = n.GetStringValue(); } },
{ "link_audio_delay", n => { LinkAudioDelay = n.GetStringValue(); } },
{ "link_audio_quality", n => { LinkAudioQuality = n.GetStringValue(); } },
{ "link_control", n => { LinkControl = n.GetStringValue(); } },
{ "max_volume", n => { MaxVolume = n.GetIntValue(); } },
{ "mute", n => { Mute = n.GetBoolValue(); } },
{ "power", n => { Power = n.GetStringValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "sleep", n => { Sleep = n.GetIntValue(); } },
{ "volume", n => { Volume = n.GetIntValue(); } },
};
}
/// <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.WriteIntValue("disable_flags", DisableFlags);
writer.WriteBoolValue("distribution_enable", DistributionEnable);
writer.WriteStringValue("input", Input);
writer.WriteStringValue("link_audio_delay", LinkAudioDelay);
writer.WriteStringValue("link_audio_quality", LinkAudioQuality);
writer.WriteStringValue("link_control", LinkControl);
writer.WriteIntValue("max_volume", MaxVolume);
writer.WriteBoolValue("mute", Mute);
writer.WriteStringValue("power", Power);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteIntValue("sleep", Sleep);
writer.WriteIntValue("volume", Volume);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 GetStreamingServiceSettingsResponse : 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 response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The services property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Services>? Services { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Services> Services { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse"/> and sets the default values.
/// </summary>
public GetStreamingServiceSettingsResponse()
{
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.GetStreamingServiceSettingsResponse"/></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.GetStreamingServiceSettingsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse();
}
/// <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>>
{
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "services", n => { Services = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Services>(global::MusicCast.Net.Api.Client.Models.Services.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteIntValue("response_code", ResponseCode);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Services>("services", Services);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,79 @@
// <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 GetTagResponse : 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 input_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Input_list3>? InputList { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Input_list3> InputList { get; set; }
#endif
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The zone_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Zone_list3>? ZoneList { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Zone_list3> ZoneList { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetTagResponse"/> and sets the default values.
/// </summary>
public GetTagResponse()
{
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.GetTagResponse"/></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.GetTagResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetTagResponse();
}
/// <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>>
{
{ "input_list", n => { InputList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list3>(global::MusicCast.Net.Api.Client.Models.Input_list3.CreateFromDiscriminatorValue)?.AsList(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "zone_list", n => { ZoneList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list3>(global::MusicCast.Net.Api.Client.Models.Zone_list3.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list3>("input_list", InputList);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list3>("zone_list", ZoneList);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,91 @@
// <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 GetYpaoConfigResponse : 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 disable_flags property</summary>
public int? DisableFlags { get; set; }
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>The ypao_setting property</summary>
public bool? YpaoSetting { get; set; }
/// <summary>The ypao_speaker_unit property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? YpaoSpeakerUnit { get; set; }
#nullable restore
#else
public string YpaoSpeakerUnit { get; set; }
#endif
/// <summary>The ypao_status property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? YpaoStatus { get; set; }
#nullable restore
#else
public string YpaoStatus { get; set; }
#endif
/// <summary>The ypao_volume property</summary>
public bool? YpaoVolume { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse"/> and sets the default values.
/// </summary>
public GetYpaoConfigResponse()
{
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.GetYpaoConfigResponse"/></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.GetYpaoConfigResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse();
}
/// <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>>
{
{ "disable_flags", n => { DisableFlags = n.GetIntValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
{ "ypao_setting", n => { YpaoSetting = n.GetBoolValue(); } },
{ "ypao_speaker_unit", n => { YpaoSpeakerUnit = n.GetStringValue(); } },
{ "ypao_status", n => { YpaoStatus = n.GetStringValue(); } },
{ "ypao_volume", n => { YpaoVolume = n.GetBoolValue(); } },
};
}
/// <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.WriteIntValue("disable_flags", DisableFlags);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteBoolValue("ypao_setting", YpaoSetting);
writer.WriteStringValue("ypao_speaker_unit", YpaoSpeakerUnit);
writer.WriteStringValue("ypao_status", YpaoStatus);
writer.WriteBoolValue("ypao_volume", YpaoVolume);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,87 @@
// <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 Input_list : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// <summary>The account_enable property</summary>
public bool? AccountEnable { get; set; }
/// <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 distribution_enable property</summary>
public bool? DistributionEnable { get; set; }
/// <summary>The id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The play_info_type property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? PlayInfoType { get; set; }
#nullable restore
#else
public string PlayInfoType { get; set; }
#endif
/// <summary>The rename_enable property</summary>
public bool? RenameEnable { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Input_list"/> and sets the default values.
/// </summary>
public Input_list()
{
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.Input_list"/></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.Input_list CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Input_list();
}
/// <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>>
{
{ "account_enable", n => { AccountEnable = n.GetBoolValue(); } },
{ "distribution_enable", n => { DistributionEnable = n.GetBoolValue(); } },
{ "id", n => { Id = n.GetStringValue(); } },
{ "play_info_type", n => { PlayInfoType = n.GetStringValue(); } },
{ "rename_enable", n => { RenameEnable = n.GetBoolValue(); } },
};
}
/// <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.WriteBoolValue("account_enable", AccountEnable);
writer.WriteBoolValue("distribution_enable", DistributionEnable);
writer.WriteStringValue("id", Id);
writer.WriteStringValue("play_info_type", PlayInfoType);
writer.WriteBoolValue("rename_enable", RenameEnable);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,75 @@
// <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 Input_list2 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The text property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Text { get; set; }
#nullable restore
#else
public string Text { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Input_list2"/> and sets the default values.
/// </summary>
public Input_list2()
{
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.Input_list2"/></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.Input_list2 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Input_list2();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "text", n => { Text = 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.WriteStringValue("id", Id);
writer.WriteStringValue("text", Text);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 Input_list3 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The tag property</summary>
public int? Tag { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Input_list3"/> and sets the default values.
/// </summary>
public Input_list3()
{
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.Input_list3"/></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.Input_list3 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Input_list3();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "tag", n => { Tag = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteIntValue("tag", Tag);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,63 @@
// <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 IsNewFirmwareAvailableResponse : 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 available property</summary>
public bool? Available { get; set; }
/// <summary>The response_code property</summary>
public int? ResponseCode { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse"/> and sets the default values.
/// </summary>
public IsNewFirmwareAvailableResponse()
{
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.IsNewFirmwareAvailableResponse"/></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.IsNewFirmwareAvailableResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse();
}
/// <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>>
{
{ "available", n => { Available = n.GetBoolValue(); } },
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
};
}
/// <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.WriteBoolValue("available", Available);
writer.WriteIntValue("response_code", ResponseCode);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,99 @@
// <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 List_info : 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 attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The logo property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Logo { get; set; }
#nullable restore
#else
public string Logo { get; set; }
#endif
/// <summary>The subtexts property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? Subtexts { get; set; }
#nullable restore
#else
public UntypedNode Subtexts { get; set; }
#endif
/// <summary>The text property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Text { get; set; }
#nullable restore
#else
public string Text { get; set; }
#endif
/// <summary>The thumbnail property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Thumbnail { get; set; }
#nullable restore
#else
public string Thumbnail { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.List_info"/> and sets the default values.
/// </summary>
public List_info()
{
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.List_info"/></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.List_info CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.List_info();
}
/// <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>>
{
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "logo", n => { Logo = n.GetStringValue(); } },
{ "subtexts", n => { Subtexts = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "text", n => { Text = n.GetStringValue(); } },
{ "thumbnail", n => { Thumbnail = 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.WriteIntValue("attribute", Attribute);
writer.WriteStringValue("logo", Logo);
writer.WriteObjectValue<UntypedNode>("subtexts", Subtexts);
writer.WriteStringValue("text", Text);
writer.WriteStringValue("thumbnail", Thumbnail);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,63 @@
// <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 Mc_playlist : 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 num property</summary>
public int? Num { get; set; }
/// <summary>The size property</summary>
public int? Size { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Mc_playlist"/> and sets the default values.
/// </summary>
public Mc_playlist()
{
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.Mc_playlist"/></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.Mc_playlist CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Mc_playlist();
}
/// <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>>
{
{ "num", n => { Num = n.GetIntValue(); } },
{ "size", n => { Size = n.GetIntValue(); } },
};
}
/// <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.WriteIntValue("num", Num);
writer.WriteIntValue("size", Size);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,135 @@
// <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 Netusb : 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 func_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? FuncList { get; set; }
#nullable restore
#else
public List<string> FuncList { get; set; }
#endif
/// <summary>The mc_playlist property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Mc_playlist? McPlaylist { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Mc_playlist McPlaylist { get; set; }
#endif
/// <summary>The net_radio_type property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? NetRadioType { get; set; }
#nullable restore
#else
public string NetRadioType { get; set; }
#endif
/// <summary>The pandora property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Pandora? Pandora { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Pandora Pandora { get; set; }
#endif
/// <summary>The play_queue property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Play_queue? PlayQueue { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Play_queue PlayQueue { get; set; }
#endif
/// <summary>The preset property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Preset1? Preset { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Preset1 Preset { get; set; }
#endif
/// <summary>The recent_info property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Recent_info2? RecentInfo { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Recent_info2 RecentInfo { get; set; }
#endif
/// <summary>The siriusxm property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Siriusxm? Siriusxm { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Siriusxm Siriusxm { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Netusb"/> and sets the default values.
/// </summary>
public Netusb()
{
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.Netusb"/></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.Netusb CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Netusb();
}
/// <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>>
{
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "mc_playlist", n => { McPlaylist = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Mc_playlist>(global::MusicCast.Net.Api.Client.Models.Mc_playlist.CreateFromDiscriminatorValue); } },
{ "net_radio_type", n => { NetRadioType = n.GetStringValue(); } },
{ "pandora", n => { Pandora = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Pandora>(global::MusicCast.Net.Api.Client.Models.Pandora.CreateFromDiscriminatorValue); } },
{ "play_queue", n => { PlayQueue = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Play_queue>(global::MusicCast.Net.Api.Client.Models.Play_queue.CreateFromDiscriminatorValue); } },
{ "preset", n => { Preset = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Preset1>(global::MusicCast.Net.Api.Client.Models.Preset1.CreateFromDiscriminatorValue); } },
{ "recent_info", n => { RecentInfo = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Recent_info2>(global::MusicCast.Net.Api.Client.Models.Recent_info2.CreateFromDiscriminatorValue); } },
{ "siriusxm", n => { Siriusxm = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Siriusxm>(global::MusicCast.Net.Api.Client.Models.Siriusxm.CreateFromDiscriminatorValue); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Mc_playlist>("mc_playlist", McPlaylist);
writer.WriteStringValue("net_radio_type", NetRadioType);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Pandora>("pandora", Pandora);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Play_queue>("play_queue", PlayQueue);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Preset1>("preset", Preset);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Recent_info2>("recent_info", RecentInfo);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Siriusxm>("siriusxm", Siriusxm);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,65 @@
// <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 Pair : 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 mac_address property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? MacAddress { get; set; }
#nullable restore
#else
public string MacAddress { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Pair"/> and sets the default values.
/// </summary>
public Pair()
{
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.Pair"/></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.Pair CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Pair();
}
/// <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>>
{
{ "mac_address", n => { MacAddress = 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.WriteStringValue("mac_address", MacAddress);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,65 @@
// <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 Pandora : 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 sort_option_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? SortOptionList { get; set; }
#nullable restore
#else
public List<string> SortOptionList { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Pandora"/> and sets the default values.
/// </summary>
public Pandora()
{
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.Pandora"/></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.Pandora CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Pandora();
}
/// <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>>
{
{ "sort_option_list", n => { SortOptionList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
};
}
/// <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.WriteCollectionOfPrimitiveValues<string>("sort_option_list", SortOptionList);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,59 @@
// <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 Play_queue : 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 size property</summary>
public int? Size { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Play_queue"/> and sets the default values.
/// </summary>
public Play_queue()
{
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.Play_queue"/></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.Play_queue CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Play_queue();
}
/// <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>>
{
{ "size", n => { Size = n.GetIntValue(); } },
};
}
/// <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.WriteIntValue("size", Size);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 Preset : 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 num property</summary>
public int? Num { get; set; }
/// <summary>The type property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Type { get; set; }
#nullable restore
#else
public string Type { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Preset"/> and sets the default values.
/// </summary>
public Preset()
{
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.Preset"/></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.Preset CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Preset();
}
/// <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>>
{
{ "num", n => { Num = n.GetIntValue(); } },
{ "type", n => { Type = 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.WriteIntValue("num", Num);
writer.WriteStringValue("type", Type);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,59 @@
// <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 Preset1 : 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 num property</summary>
public int? Num { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Preset1"/> and sets the default values.
/// </summary>
public Preset1()
{
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.Preset1"/></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.Preset1 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Preset1();
}
/// <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>>
{
{ "num", n => { Num = n.GetIntValue(); } },
};
}
/// <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.WriteIntValue("num", Num);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,77 @@
// <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 Range_step : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The max property</summary>
public int? Max { get; set; }
/// <summary>The min property</summary>
public int? Min { get; set; }
/// <summary>The step property</summary>
public int? Step { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step"/> and sets the default values.
/// </summary>
public Range_step()
{
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.Range_step"/></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.Range_step CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Range_step();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "max", n => { Max = n.GetIntValue(); } },
{ "min", n => { Min = n.GetIntValue(); } },
{ "step", n => { Step = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteIntValue("max", Max);
writer.WriteIntValue("min", Min);
writer.WriteIntValue("step", Step);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,77 @@
// <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 Range_step1 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The max property</summary>
public int? Max { get; set; }
/// <summary>The min property</summary>
public int? Min { get; set; }
/// <summary>The step property</summary>
public int? Step { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step1"/> and sets the default values.
/// </summary>
public Range_step1()
{
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.Range_step1"/></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.Range_step1 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Range_step1();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "max", n => { Max = n.GetIntValue(); } },
{ "min", n => { Min = n.GetIntValue(); } },
{ "step", n => { Step = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteIntValue("max", Max);
writer.WriteIntValue("min", Min);
writer.WriteIntValue("step", Step);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,77 @@
// <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 Range_step2 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The max property</summary>
public int? Max { get; set; }
/// <summary>The min property</summary>
public int? Min { get; set; }
/// <summary>The step property</summary>
public int? Step { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step2"/> and sets the default values.
/// </summary>
public Range_step2()
{
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.Range_step2"/></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.Range_step2 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Range_step2();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "max", n => { Max = n.GetIntValue(); } },
{ "min", n => { Min = n.GetIntValue(); } },
{ "step", n => { Step = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteIntValue("max", Max);
writer.WriteIntValue("min", Min);
writer.WriteIntValue("step", Step);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,77 @@
// <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 Range_step3 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The max property</summary>
public int? Max { get; set; }
/// <summary>The min property</summary>
public int? Min { get; set; }
/// <summary>The step property</summary>
public int? Step { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step3"/> and sets the default values.
/// </summary>
public Range_step3()
{
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.Range_step3"/></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.Range_step3 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Range_step3();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "max", n => { Max = n.GetIntValue(); } },
{ "min", n => { Min = n.GetIntValue(); } },
{ "step", n => { Step = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteIntValue("max", Max);
writer.WriteIntValue("min", Min);
writer.WriteIntValue("step", Step);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,77 @@
// <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 Range_step4 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The max property</summary>
public int? Max { get; set; }
/// <summary>The min property</summary>
public int? Min { get; set; }
/// <summary>The step property</summary>
public int? Step { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step4"/> and sets the default values.
/// </summary>
public Range_step4()
{
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.Range_step4"/></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.Range_step4 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Range_step4();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "max", n => { Max = n.GetIntValue(); } },
{ "min", n => { Min = n.GetIntValue(); } },
{ "step", n => { Step = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteIntValue("max", Max);
writer.WriteIntValue("min", Min);
writer.WriteIntValue("step", Step);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,93 @@
// <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 Recent_info : 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 albumart_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? AlbumartUrl { get; set; }
#nullable restore
#else
public string AlbumartUrl { get; set; }
#endif
/// <summary>The attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The input property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Input { get; set; }
#nullable restore
#else
public string Input { get; set; }
#endif
/// <summary>The play_count property</summary>
public int? PlayCount { get; set; }
/// <summary>The text property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Text { get; set; }
#nullable restore
#else
public string Text { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Recent_info"/> and sets the default values.
/// </summary>
public Recent_info()
{
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.Recent_info"/></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.Recent_info CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Recent_info();
}
/// <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>>
{
{ "albumart_url", n => { AlbumartUrl = n.GetStringValue(); } },
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "input", n => { Input = n.GetStringValue(); } },
{ "play_count", n => { PlayCount = n.GetIntValue(); } },
{ "text", n => { Text = 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.WriteStringValue("albumart_url", AlbumartUrl);
writer.WriteIntValue("attribute", Attribute);
writer.WriteStringValue("input", Input);
writer.WriteIntValue("play_count", PlayCount);
writer.WriteStringValue("text", Text);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,59 @@
// <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 Recent_info2 : 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 num property</summary>
public int? Num { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Recent_info2"/> and sets the default values.
/// </summary>
public Recent_info2()
{
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.Recent_info2"/></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.Recent_info2 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Recent_info2();
}
/// <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>>
{
{ "num", n => { Num = n.GetIntValue(); } },
};
}
/// <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.WriteIntValue("num", Num);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,73 @@
// <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 Services : 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 confirmed property</summary>
public bool? Confirmed { get; set; }
/// <summary>The input property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Input { get; set; }
#nullable restore
#else
public string Input { get; set; }
#endif
/// <summary>The use_service property</summary>
public bool? UseService { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Services"/> and sets the default values.
/// </summary>
public Services()
{
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.Services"/></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.Services CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Services();
}
/// <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>>
{
{ "confirmed", n => { Confirmed = n.GetBoolValue(); } },
{ "input", n => { Input = n.GetStringValue(); } },
{ "use_service", n => { UseService = n.GetBoolValue(); } },
};
}
/// <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.WriteBoolValue("confirmed", Confirmed);
writer.WriteStringValue("input", Input);
writer.WriteBoolValue("use_service", UseService);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,65 @@
// <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 Siriusxm : 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_type property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ApiType { get; set; }
#nullable restore
#else
public string ApiType { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Siriusxm"/> and sets the default values.
/// </summary>
public Siriusxm()
{
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.Siriusxm"/></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.Siriusxm CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Siriusxm();
}
/// <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_type", n => { ApiType = 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.WriteStringValue("api_type", ApiType);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,105 @@
// <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 Speaker_settings : 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 common property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Common? Common { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Common Common { get; set; }
#endif
/// <summary>The front_l property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Front_l? FrontL { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Front_l FrontL { get; set; }
#endif
/// <summary>The front_r property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Front_r? FrontR { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Front_r FrontR { get; set; }
#endif
/// <summary>The swfr property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Swfr? Swfr { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Swfr Swfr { get; set; }
#endif
/// <summary>The type property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Type { get; set; }
#nullable restore
#else
public string Type { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Speaker_settings"/> and sets the default values.
/// </summary>
public Speaker_settings()
{
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.Speaker_settings"/></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.Speaker_settings CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Speaker_settings();
}
/// <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>>
{
{ "common", n => { Common = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Common>(global::MusicCast.Net.Api.Client.Models.Common.CreateFromDiscriminatorValue); } },
{ "front_l", n => { FrontL = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Front_l>(global::MusicCast.Net.Api.Client.Models.Front_l.CreateFromDiscriminatorValue); } },
{ "front_r", n => { FrontR = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Front_r>(global::MusicCast.Net.Api.Client.Models.Front_r.CreateFromDiscriminatorValue); } },
{ "swfr", n => { Swfr = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Swfr>(global::MusicCast.Net.Api.Client.Models.Swfr.CreateFromDiscriminatorValue); } },
{ "type", n => { Type = 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.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Common>("common", Common);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Front_l>("front_l", FrontL);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Front_r>("front_r", FrontR);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Swfr>("swfr", Swfr);
writer.WriteStringValue("type", Type);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,75 @@
// <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 Speaker_size : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The size_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? SizeList { get; set; }
#nullable restore
#else
public List<string> SizeList { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Speaker_size"/> and sets the default values.
/// </summary>
public Speaker_size()
{
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.Speaker_size"/></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.Speaker_size CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Speaker_size();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "size_list", n => { SizeList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteCollectionOfPrimitiveValues<string>("size_list", SizeList);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 Swfr : 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 attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The range_step property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Range_step2>? RangeStep { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Range_step2> RangeStep { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Swfr"/> and sets the default values.
/// </summary>
public Swfr()
{
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.Swfr"/></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.Swfr CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Swfr();
}
/// <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>>
{
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step2>(global::MusicCast.Net.Api.Client.Models.Range_step2.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteIntValue("attribute", Attribute);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step2>("range_step", RangeStep);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,99 @@
// <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 System : 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 func_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? FuncList { get; set; }
#nullable restore
#else
public List<string> FuncList { get; set; }
#endif
/// <summary>The input_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Input_list>? InputList { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Input_list> InputList { get; set; }
#endif
/// <summary>The speaker_settings property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Speaker_settings? SpeakerSettings { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Speaker_settings SpeakerSettings { get; set; }
#endif
/// <summary>The ypao_speaker_unit_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? YpaoSpeakerUnitList { get; set; }
#nullable restore
#else
public List<string> YpaoSpeakerUnitList { get; set; }
#endif
/// <summary>The zone_num property</summary>
public int? ZoneNum { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.System"/> and sets the default values.
/// </summary>
public System()
{
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.System"/></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.System CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.System();
}
/// <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>>
{
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "input_list", n => { InputList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list>(global::MusicCast.Net.Api.Client.Models.Input_list.CreateFromDiscriminatorValue)?.AsList(); } },
{ "speaker_settings", n => { SpeakerSettings = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Speaker_settings>(global::MusicCast.Net.Api.Client.Models.Speaker_settings.CreateFromDiscriminatorValue); } },
{ "ypao_speaker_unit_list", n => { YpaoSpeakerUnitList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "zone_num", n => { ZoneNum = n.GetIntValue(); } },
};
}
/// <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.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list>("input_list", InputList);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Speaker_settings>("speaker_settings", SpeakerSettings);
writer.WriteCollectionOfPrimitiveValues<string>("ypao_speaker_unit_list", YpaoSpeakerUnitList);
writer.WriteIntValue("zone_num", ZoneNum);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,89 @@
// <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 Track_info : 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 attribute property</summary>
public int? Attribute { get; set; }
/// <summary>The input property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Input { get; set; }
#nullable restore
#else
public string Input { get; set; }
#endif
/// <summary>The text property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Text { get; set; }
#nullable restore
#else
public string Text { get; set; }
#endif
/// <summary>The thumbnail property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Thumbnail { get; set; }
#nullable restore
#else
public string Thumbnail { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Track_info"/> and sets the default values.
/// </summary>
public Track_info()
{
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.Track_info"/></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.Track_info CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Track_info();
}
/// <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>>
{
{ "attribute", n => { Attribute = n.GetIntValue(); } },
{ "input", n => { Input = n.GetStringValue(); } },
{ "text", n => { Text = n.GetStringValue(); } },
{ "thumbnail", n => { Thumbnail = 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.WriteIntValue("attribute", Attribute);
writer.WriteStringValue("input", Input);
writer.WriteStringValue("text", Text);
writer.WriteStringValue("thumbnail", Thumbnail);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,85 @@
// <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 Tuner : 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 func_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? FuncList { get; set; }
#nullable restore
#else
public List<string> FuncList { get; set; }
#endif
/// <summary>The preset property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::MusicCast.Net.Api.Client.Models.Preset? Preset { get; set; }
#nullable restore
#else
public global::MusicCast.Net.Api.Client.Models.Preset Preset { get; set; }
#endif
/// <summary>The range_step property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Range_step4>? RangeStep { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Range_step4> RangeStep { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Tuner"/> and sets the default values.
/// </summary>
public Tuner()
{
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.Tuner"/></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.Tuner CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Tuner();
}
/// <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>>
{
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "preset", n => { Preset = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Preset>(global::MusicCast.Net.Api.Client.Models.Preset.CreateFromDiscriminatorValue); } },
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step4>(global::MusicCast.Net.Api.Client.Models.Range_step4.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Preset>("preset", Preset);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step4>("range_step", RangeStep);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,125 @@
// <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 Zone : 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 func_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? FuncList { get; set; }
#nullable restore
#else
public List<string> FuncList { get; set; }
#endif
/// <summary>The id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The input_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? InputList { get; set; }
#nullable restore
#else
public List<string> InputList { get; set; }
#endif
/// <summary>The link_audio_delay_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? LinkAudioDelayList { get; set; }
#nullable restore
#else
public List<string> LinkAudioDelayList { get; set; }
#endif
/// <summary>The link_audio_quality_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? LinkAudioQualityList { get; set; }
#nullable restore
#else
public List<string> LinkAudioQualityList { get; set; }
#endif
/// <summary>The link_control_list property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<string>? LinkControlList { get; set; }
#nullable restore
#else
public List<string> LinkControlList { get; set; }
#endif
/// <summary>The range_step property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::MusicCast.Net.Api.Client.Models.Range_step3>? RangeStep { get; set; }
#nullable restore
#else
public List<global::MusicCast.Net.Api.Client.Models.Range_step3> RangeStep { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone"/> and sets the default values.
/// </summary>
public Zone()
{
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.Zone"/></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.Zone CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Zone();
}
/// <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>>
{
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "id", n => { Id = n.GetStringValue(); } },
{ "input_list", n => { InputList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "link_audio_delay_list", n => { LinkAudioDelayList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "link_audio_quality_list", n => { LinkAudioQualityList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "link_control_list", n => { LinkControlList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step3>(global::MusicCast.Net.Api.Client.Models.Range_step3.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
/// <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.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
writer.WriteStringValue("id", Id);
writer.WriteCollectionOfPrimitiveValues<string>("input_list", InputList);
writer.WriteCollectionOfPrimitiveValues<string>("link_audio_delay_list", LinkAudioDelayList);
writer.WriteCollectionOfPrimitiveValues<string>("link_audio_quality_list", LinkAudioQualityList);
writer.WriteCollectionOfPrimitiveValues<string>("link_control_list", LinkControlList);
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step3>("range_step", RangeStep);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,59 @@
// <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 Zone_list : 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 main property</summary>
public bool? Main { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list"/> and sets the default values.
/// </summary>
public Zone_list()
{
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.Zone_list"/></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.Zone_list CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Zone_list();
}
/// <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>>
{
{ "main", n => { Main = n.GetBoolValue(); } },
};
}
/// <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.WriteBoolValue("main", Main);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,75 @@
// <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 Zone_list2 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The text property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Text { get; set; }
#nullable restore
#else
public string Text { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list2"/> and sets the default values.
/// </summary>
public Zone_list2()
{
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.Zone_list2"/></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.Zone_list2 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Zone_list2();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "text", n => { Text = 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.WriteStringValue("id", Id);
writer.WriteStringValue("text", Text);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618

View File

@@ -0,0 +1,69 @@
// <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 Zone_list3 : 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 id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Id { get; set; }
#nullable restore
#else
public string Id { get; set; }
#endif
/// <summary>The tag property</summary>
public int? Tag { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list3"/> and sets the default values.
/// </summary>
public Zone_list3()
{
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.Zone_list3"/></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.Zone_list3 CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::MusicCast.Net.Api.Client.Models.Zone_list3();
}
/// <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>>
{
{ "id", n => { Id = n.GetStringValue(); } },
{ "tag", n => { Tag = n.GetIntValue(); } },
};
}
/// <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.WriteStringValue("id", Id);
writer.WriteIntValue("tag", Tag);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618