diff --git a/MusicCast.Net.Api.Client/Models/Audio.cs b/MusicCast.Net.Api.Client/Models/Audio.cs new file mode 100644 index 0000000..9416bb6 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Audio.cs @@ -0,0 +1,79 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The error property + public int? Error { get; set; } + /// The format property +#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 + /// The fs property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Audio() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Audio CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Audio(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "error", n => { Error = n.GetIntValue(); } }, + { "format", n => { Format = n.GetStringValue(); } }, + { "fs", n => { Fs = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/BaseResponse.cs b/MusicCast.Net.Api.Client/Models/BaseResponse.cs new file mode 100644 index 0000000..588d645 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/BaseResponse.cs @@ -0,0 +1,65 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The response_code property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public BaseResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.BaseResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.BaseResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "response_code", n => { ResponseCode = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("response_code", ResponseCode); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Ccs.cs b/MusicCast.Net.Api.Client/Models/Ccs.cs new file mode 100644 index 0000000..1534b5c --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Ccs.cs @@ -0,0 +1,59 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The supported property + public bool? Supported { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Ccs() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Ccs CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Ccs(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "supported", n => { Supported = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("supported", Supported); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Common.cs b/MusicCast.Net.Api.Client/Models/Common.cs new file mode 100644 index 0000000..acec69b --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Common.cs @@ -0,0 +1,79 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The attribute property + public int? Attribute { get; set; } + /// The speaker_size property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SpeakerSize { get; set; } +#nullable restore +#else + public List SpeakerSize { get; set; } +#endif + /// The swfr_crossover_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SwfrCrossoverList { get; set; } +#nullable restore +#else + public List SwfrCrossoverList { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Common() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Common CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Common(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attribute", n => { Attribute = n.GetIntValue(); } }, + { "speaker_size", n => { SpeakerSize = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Speaker_size.CreateFromDiscriminatorValue)?.AsList(); } }, + { "swfr_crossover_list", n => { SwfrCrossoverList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("attribute", Attribute); + writer.WriteCollectionOfObjectValues("speaker_size", SpeakerSize); + writer.WriteCollectionOfPrimitiveValues("swfr_crossover_list", SwfrCrossoverList); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Disklavier.cs b/MusicCast.Net.Api.Client/Models/Disklavier.cs new file mode 100644 index 0000000..d4f2d9c --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Disklavier.cs @@ -0,0 +1,65 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The ip_address property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Disklavier() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Disklavier CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Disklavier(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "ip_address", n => { IpAddress = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("ip_address", IpAddress); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Distribution.cs b/MusicCast.Net.Api.Client/Models/Distribution.cs new file mode 100644 index 0000000..fcfbdca --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Distribution.cs @@ -0,0 +1,83 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The client_max property + public int? ClientMax { get; set; } + /// The compatible_client property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CompatibleClient { get; set; } +#nullable restore +#else + public List CompatibleClient { get; set; } +#endif + /// The server_zone_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ServerZoneList { get; set; } +#nullable restore +#else + public List ServerZoneList { get; set; } +#endif + /// The version property + public int? Version { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Distribution() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Distribution CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Distribution(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "client_max", n => { ClientMax = n.GetIntValue(); } }, + { "compatible_client", n => { CompatibleClient = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "server_zone_list", n => { ServerZoneList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "version", n => { Version = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("client_max", ClientMax); + writer.WriteCollectionOfPrimitiveValues("compatible_client", CompatibleClient); + writer.WriteCollectionOfPrimitiveValues("server_zone_list", ServerZoneList); + writer.WriteIntValue("version", Version); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Front_l.cs b/MusicCast.Net.Api.Client/Models/Front_l.cs new file mode 100644 index 0000000..01110f3 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Front_l.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The attribute property + public int? Attribute { get; set; } + /// The range_step property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RangeStep { get; set; } +#nullable restore +#else + public List RangeStep { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Front_l() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attribute", n => { Attribute = n.GetIntValue(); } }, + { "range_step", n => { RangeStep = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Range_step.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("attribute", Attribute); + writer.WriteCollectionOfObjectValues("range_step", RangeStep); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Front_r.cs b/MusicCast.Net.Api.Client/Models/Front_r.cs new file mode 100644 index 0000000..b7dfdf1 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Front_r.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The attribute property + public int? Attribute { get; set; } + /// The range_step property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RangeStep { get; set; } +#nullable restore +#else + public List RangeStep { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Front_r() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attribute", n => { Attribute = n.GetIntValue(); } }, + { "range_step", n => { RangeStep = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Range_step1.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("attribute", Attribute); + writer.WriteCollectionOfObjectValues("range_step", RangeStep); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetDeviceInfoResponse.cs b/MusicCast.Net.Api.Client/Models/GetDeviceInfoResponse.cs new file mode 100644 index 0000000..d83dd64 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetDeviceInfoResponse.cs @@ -0,0 +1,151 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The api_version property + public double? ApiVersion { get; set; } + /// The destination property +#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 + /// The device_id property +#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 + /// The model_name property +#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 + /// The netmodule_checksum property +#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 + /// The netmodule_generation property + public int? NetmoduleGeneration { get; set; } + /// The netmodule_version property +#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 + /// The operation_mode property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// The system_id property +#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 + /// The system_version property + public int? SystemVersion { get; set; } + /// The update_error_code property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public GetDeviceInfoResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/GetDisklavierSettingsResponse.cs b/MusicCast.Net.Api.Client/Models/GetDisklavierSettingsResponse.cs new file mode 100644 index 0000000..38710ea --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetDisklavierSettingsResponse.cs @@ -0,0 +1,103 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The disklavier property +#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 + /// The enable property + public bool? Enable { get; set; } + /// The input property +#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 + /// The mode property +#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 + /// The pair property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetDisklavierSettingsResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "disklavier", n => { Disklavier = n.GetObjectValue(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.CreateFromDiscriminatorValue); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("disklavier", Disklavier); + writer.WriteBoolValue("enable", Enable); + writer.WriteStringValue("input", Input); + writer.WriteStringValue("mode", Mode); + writer.WriteObjectValue("pair", Pair); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetDistributionInfoResponse.cs b/MusicCast.Net.Api.Client/Models/GetDistributionInfoResponse.cs new file mode 100644 index 0000000..d3a86d7 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetDistributionInfoResponse.cs @@ -0,0 +1,109 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The client_list property +#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 + /// The group_id property +#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 + /// The group_name property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// The role property +#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 + /// The server_zone property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public GetDistributionInfoResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "client_list", n => { ClientList = n.GetObjectValue(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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("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 diff --git a/MusicCast.Net.Api.Client/Models/GetFeaturesResponse.cs b/MusicCast.Net.Api.Client/Models/GetFeaturesResponse.cs new file mode 100644 index 0000000..09746e2 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetFeaturesResponse.cs @@ -0,0 +1,119 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The ccs property +#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 + /// The distribution property +#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 + /// The netusb property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// The system property +#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 + /// The tuner property +#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 + /// The zone property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Zone { get; set; } +#nullable restore +#else + public List Zone { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetFeaturesResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "ccs", n => { Ccs = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Ccs.CreateFromDiscriminatorValue); } }, + { "distribution", n => { Distribution = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Distribution.CreateFromDiscriminatorValue); } }, + { "netusb", n => { Netusb = n.GetObjectValue(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.CreateFromDiscriminatorValue); } }, + { "tuner", n => { Tuner = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Tuner.CreateFromDiscriminatorValue); } }, + { "zone", n => { Zone = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Zone.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("ccs", Ccs); + writer.WriteObjectValue("distribution", Distribution); + writer.WriteObjectValue("netusb", Netusb); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteObjectValue("system", System); + writer.WriteObjectValue("tuner", Tuner); + writer.WriteCollectionOfObjectValues("zone", Zone); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetFuncStatusResponse.cs b/MusicCast.Net.Api.Client/Models/GetFuncStatusResponse.cs new file mode 100644 index 0000000..209db63 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetFuncStatusResponse.cs @@ -0,0 +1,75 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The auto_power_standby property + public bool? AutoPowerStandby { get; set; } + /// The headphone property + public bool? Headphone { get; set; } + /// The response_code property + public int? ResponseCode { get; set; } + /// The speaker_a property + public bool? SpeakerA { get; set; } + /// The speaker_b property + public bool? SpeakerB { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetFuncStatusResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/GetListInfoResponse.cs b/MusicCast.Net.Api.Client/Models/GetListInfoResponse.cs new file mode 100644 index 0000000..8edc3cd --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetListInfoResponse.cs @@ -0,0 +1,105 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The index property + public int? Index { get; set; } + /// The input property +#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 + /// The list_info property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ListInfo { get; set; } +#nullable restore +#else + public List ListInfo { get; set; } +#endif + /// The max_line property + public int? MaxLine { get; set; } + /// The menu_layer property + public int? MenuLayer { get; set; } + /// The menu_name property +#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 + /// The playing_index property + public int? PlayingIndex { get; set; } + /// The response_code property + public int? ResponseCode { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetListInfoResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetListInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetListInfoResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "index", n => { Index = n.GetIntValue(); } }, + { "input", n => { Input = n.GetStringValue(); } }, + { "list_info", n => { ListInfo = n.GetCollectionOfObjectValues(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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("index", Index); + writer.WriteStringValue("input", Input); + writer.WriteCollectionOfObjectValues("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 diff --git a/MusicCast.Net.Api.Client/Models/GetLocationInfoResponse.cs b/MusicCast.Net.Api.Client/Models/GetLocationInfoResponse.cs new file mode 100644 index 0000000..bd3b98c --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetLocationInfoResponse.cs @@ -0,0 +1,89 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The name property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// The zone_list property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public GetLocationInfoResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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("zone_list", ZoneList); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetMcPlaylistNameResponse.cs b/MusicCast.Net.Api.Client/Models/GetMcPlaylistNameResponse.cs new file mode 100644 index 0000000..229ff64 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetMcPlaylistNameResponse.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The name_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? NameList { get; set; } +#nullable restore +#else + public List NameList { get; set; } +#endif + /// The response_code property + public int? ResponseCode { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetMcPlaylistNameResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "name_list", n => { NameList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("name_list", NameList); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetNameTextResponse.cs b/MusicCast.Net.Api.Client/Models/GetNameTextResponse.cs new file mode 100644 index 0000000..856a8f8 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetNameTextResponse.cs @@ -0,0 +1,89 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The input_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? InputList { get; set; } +#nullable restore +#else + public List InputList { get; set; } +#endif + /// The response_code property + public int? ResponseCode { get; set; } + /// The sound_program_list property +#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 + /// The zone_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ZoneList { get; set; } +#nullable restore +#else + public List ZoneList { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetNameTextResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetNameTextResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetNameTextResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "input_list", n => { InputList = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Input_list2.CreateFromDiscriminatorValue)?.AsList(); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + { "sound_program_list", n => { SoundProgramList = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "zone_list", n => { ZoneList = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Zone_list2.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("input_list", InputList); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteObjectValue("sound_program_list", SoundProgramList); + writer.WriteCollectionOfObjectValues("zone_list", ZoneList); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetNetworkStandbyResponse.cs b/MusicCast.Net.Api.Client/Models/GetNetworkStandbyResponse.cs new file mode 100644 index 0000000..1ad58ee --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetNetworkStandbyResponse.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The network_standby property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetNetworkStandbyResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "network_standby", n => { NetworkStandby = n.GetStringValue(); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/GetPlayInfoResponse.cs b/MusicCast.Net.Api.Client/Models/GetPlayInfoResponse.cs new file mode 100644 index 0000000..2773992 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetPlayInfoResponse.cs @@ -0,0 +1,199 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The album property +#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 + /// The albumart_id property + public int? AlbumartId { get; set; } + /// The albumart_url property +#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 + /// The artist property +#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 + /// The attribute property + public int? Attribute { get; set; } + /// The auto_stopped property + public bool? AutoStopped { get; set; } + /// The input property +#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 + /// The playback property +#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 + /// The play_queue_type property +#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 + /// The play_time property + public int? PlayTime { get; set; } + /// The repeat property +#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 + /// The repeat_available property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RepeatAvailable { get; set; } +#nullable restore +#else + public List RepeatAvailable { get; set; } +#endif + /// The response_code property + public int? ResponseCode { get; set; } + /// The shuffle property +#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 + /// The shuffle_available property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ShuffleAvailable { get; set; } +#nullable restore +#else + public List ShuffleAvailable { get; set; } +#endif + /// The total_time property + public int? TotalTime { get; set; } + /// The track property +#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 + /// The usb_devicetype property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public GetPlayInfoResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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()?.AsList(); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + { "shuffle", n => { Shuffle = n.GetStringValue(); } }, + { "shuffle_available", n => { ShuffleAvailable = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "total_time", n => { TotalTime = n.GetIntValue(); } }, + { "track", n => { Track = n.GetStringValue(); } }, + { "usb_devicetype", n => { UsbDevicetype = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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("repeat_available", RepeatAvailable); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteStringValue("shuffle", Shuffle); + writer.WriteCollectionOfPrimitiveValues("shuffle_available", ShuffleAvailable); + writer.WriteIntValue("total_time", TotalTime); + writer.WriteStringValue("track", Track); + writer.WriteStringValue("usb_devicetype", UsbDevicetype); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetPlayQueueResponse.cs b/MusicCast.Net.Api.Client/Models/GetPlayQueueResponse.cs new file mode 100644 index 0000000..a23c951 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetPlayQueueResponse.cs @@ -0,0 +1,91 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The index property + public int? Index { get; set; } + /// The max_line property + public int? MaxLine { get; set; } + /// The playing_index property + public int? PlayingIndex { get; set; } + /// The response_code property + public int? ResponseCode { get; set; } + /// The track_info property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? TrackInfo { get; set; } +#nullable restore +#else + public List TrackInfo { get; set; } +#endif + /// The type property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public GetPlayQueueResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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.CreateFromDiscriminatorValue)?.AsList(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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("track_info", TrackInfo); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetRecentInfoResponse.cs b/MusicCast.Net.Api.Client/Models/GetRecentInfoResponse.cs new file mode 100644 index 0000000..4225d1e --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetRecentInfoResponse.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The recent_info property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RecentInfo { get; set; } +#nullable restore +#else + public List RecentInfo { get; set; } +#endif + /// The response_code property + public int? ResponseCode { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetRecentInfoResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "recent_info", n => { RecentInfo = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Recent_info.CreateFromDiscriminatorValue)?.AsList(); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("recent_info", RecentInfo); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetSignalInfoResponse.cs b/MusicCast.Net.Api.Client/Models/GetSignalInfoResponse.cs new file mode 100644 index 0000000..d8bb689 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetSignalInfoResponse.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The audio property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetSignalInfoResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "audio", n => { Audio = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Audio.CreateFromDiscriminatorValue); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("audio", Audio); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetStatusResponse.cs b/MusicCast.Net.Api.Client/Models/GetStatusResponse.cs new file mode 100644 index 0000000..a69abd9 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetStatusResponse.cs @@ -0,0 +1,133 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The disable_flags property + public int? DisableFlags { get; set; } + /// The distribution_enable property + public bool? DistributionEnable { get; set; } + /// The input property +#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 + /// The link_audio_delay property +#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 + /// The link_audio_quality property +#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 + /// The link_control property +#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 + /// The max_volume property + public int? MaxVolume { get; set; } + /// The mute property + public bool? Mute { get; set; } + /// The power property +#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 + /// The response_code property + public int? ResponseCode { get; set; } + /// The sleep property + public int? Sleep { get; set; } + /// The volume property + public int? Volume { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetStatusResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetStatusResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetStatusResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/GetStreamingServiceSettingsResponse.cs b/MusicCast.Net.Api.Client/Models/GetStreamingServiceSettingsResponse.cs new file mode 100644 index 0000000..734cc89 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetStreamingServiceSettingsResponse.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The response_code property + public int? ResponseCode { get; set; } + /// The services property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Services { get; set; } +#nullable restore +#else + public List Services { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetStreamingServiceSettingsResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + { "services", n => { Services = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Services.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteCollectionOfObjectValues("services", Services); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetTagResponse.cs b/MusicCast.Net.Api.Client/Models/GetTagResponse.cs new file mode 100644 index 0000000..8a8406c --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetTagResponse.cs @@ -0,0 +1,79 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The input_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? InputList { get; set; } +#nullable restore +#else + public List InputList { get; set; } +#endif + /// The response_code property + public int? ResponseCode { get; set; } + /// The zone_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ZoneList { get; set; } +#nullable restore +#else + public List ZoneList { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetTagResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetTagResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetTagResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "input_list", n => { InputList = n.GetCollectionOfObjectValues(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.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("input_list", InputList); + writer.WriteIntValue("response_code", ResponseCode); + writer.WriteCollectionOfObjectValues("zone_list", ZoneList); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/GetYpaoConfigResponse.cs b/MusicCast.Net.Api.Client/Models/GetYpaoConfigResponse.cs new file mode 100644 index 0000000..367a798 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/GetYpaoConfigResponse.cs @@ -0,0 +1,91 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The disable_flags property + public int? DisableFlags { get; set; } + /// The response_code property + public int? ResponseCode { get; set; } + /// The ypao_setting property + public bool? YpaoSetting { get; set; } + /// The ypao_speaker_unit property +#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 + /// The ypao_status property +#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 + /// The ypao_volume property + public bool? YpaoVolume { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public GetYpaoConfigResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Input_list.cs b/MusicCast.Net.Api.Client/Models/Input_list.cs new file mode 100644 index 0000000..e8cb3f8 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Input_list.cs @@ -0,0 +1,87 @@ +// +#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 + { + /// The account_enable property + public bool? AccountEnable { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The distribution_enable property + public bool? DistributionEnable { get; set; } + /// The id property +#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 + /// The play_info_type property +#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 + /// The rename_enable property + public bool? RenameEnable { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Input_list() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Input_list2.cs b/MusicCast.Net.Api.Client/Models/Input_list2.cs new file mode 100644 index 0000000..6618199 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Input_list2.cs @@ -0,0 +1,75 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The text property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Input_list2() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "text", n => { Text = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Input_list3.cs b/MusicCast.Net.Api.Client/Models/Input_list3.cs new file mode 100644 index 0000000..3f19304 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Input_list3.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The tag property + public int? Tag { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Input_list3() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "tag", n => { Tag = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/IsNewFirmwareAvailableResponse.cs b/MusicCast.Net.Api.Client/Models/IsNewFirmwareAvailableResponse.cs new file mode 100644 index 0000000..7cfb919 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/IsNewFirmwareAvailableResponse.cs @@ -0,0 +1,63 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The available property + public bool? Available { get; set; } + /// The response_code property + public int? ResponseCode { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public IsNewFirmwareAvailableResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "available", n => { Available = n.GetBoolValue(); } }, + { "response_code", n => { ResponseCode = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/List_info.cs b/MusicCast.Net.Api.Client/Models/List_info.cs new file mode 100644 index 0000000..d7b4062 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/List_info.cs @@ -0,0 +1,99 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The attribute property + public int? Attribute { get; set; } + /// The logo property +#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 + /// The subtexts property +#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 + /// The text property +#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 + /// The thumbnail property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public List_info() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attribute", n => { Attribute = n.GetIntValue(); } }, + { "logo", n => { Logo = n.GetStringValue(); } }, + { "subtexts", n => { Subtexts = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetStringValue(); } }, + { "thumbnail", n => { Thumbnail = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("attribute", Attribute); + writer.WriteStringValue("logo", Logo); + writer.WriteObjectValue("subtexts", Subtexts); + writer.WriteStringValue("text", Text); + writer.WriteStringValue("thumbnail", Thumbnail); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Mc_playlist.cs b/MusicCast.Net.Api.Client/Models/Mc_playlist.cs new file mode 100644 index 0000000..d266739 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Mc_playlist.cs @@ -0,0 +1,63 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The num property + public int? Num { get; set; } + /// The size property + public int? Size { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Mc_playlist() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "num", n => { Num = n.GetIntValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Netusb.cs b/MusicCast.Net.Api.Client/Models/Netusb.cs new file mode 100644 index 0000000..6f7e60b --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Netusb.cs @@ -0,0 +1,135 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The func_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? FuncList { get; set; } +#nullable restore +#else + public List FuncList { get; set; } +#endif + /// The mc_playlist property +#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 + /// The net_radio_type property +#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 + /// The pandora property +#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 + /// The play_queue property +#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 + /// The preset property +#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 + /// The recent_info property +#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 + /// The siriusxm property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Netusb() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Netusb CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Netusb(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "mc_playlist", n => { McPlaylist = n.GetObjectValue(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.CreateFromDiscriminatorValue); } }, + { "play_queue", n => { PlayQueue = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Play_queue.CreateFromDiscriminatorValue); } }, + { "preset", n => { Preset = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Preset1.CreateFromDiscriminatorValue); } }, + { "recent_info", n => { RecentInfo = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Recent_info2.CreateFromDiscriminatorValue); } }, + { "siriusxm", n => { Siriusxm = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Siriusxm.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("func_list", FuncList); + writer.WriteObjectValue("mc_playlist", McPlaylist); + writer.WriteStringValue("net_radio_type", NetRadioType); + writer.WriteObjectValue("pandora", Pandora); + writer.WriteObjectValue("play_queue", PlayQueue); + writer.WriteObjectValue("preset", Preset); + writer.WriteObjectValue("recent_info", RecentInfo); + writer.WriteObjectValue("siriusxm", Siriusxm); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Pair.cs b/MusicCast.Net.Api.Client/Models/Pair.cs new file mode 100644 index 0000000..ad4e2b5 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Pair.cs @@ -0,0 +1,65 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The mac_address property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Pair() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Pair CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Pair(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "mac_address", n => { MacAddress = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("mac_address", MacAddress); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Pandora.cs b/MusicCast.Net.Api.Client/Models/Pandora.cs new file mode 100644 index 0000000..942a679 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Pandora.cs @@ -0,0 +1,65 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The sort_option_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SortOptionList { get; set; } +#nullable restore +#else + public List SortOptionList { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Pandora() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Pandora CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Pandora(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "sort_option_list", n => { SortOptionList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("sort_option_list", SortOptionList); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Play_queue.cs b/MusicCast.Net.Api.Client/Models/Play_queue.cs new file mode 100644 index 0000000..934cde5 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Play_queue.cs @@ -0,0 +1,59 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The size property + public int? Size { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Play_queue() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "size", n => { Size = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("size", Size); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Preset.cs b/MusicCast.Net.Api.Client/Models/Preset.cs new file mode 100644 index 0000000..6826d55 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Preset.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The num property + public int? Num { get; set; } + /// The type property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Preset() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Preset CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Preset(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "num", n => { Num = n.GetIntValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Preset1.cs b/MusicCast.Net.Api.Client/Models/Preset1.cs new file mode 100644 index 0000000..2691aeb --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Preset1.cs @@ -0,0 +1,59 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The num property + public int? Num { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Preset1() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Preset1 CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Preset1(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "num", n => { Num = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("num", Num); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Range_step.cs b/MusicCast.Net.Api.Client/Models/Range_step.cs new file mode 100644 index 0000000..65817b2 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Range_step.cs @@ -0,0 +1,77 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The max property + public int? Max { get; set; } + /// The min property + public int? Min { get; set; } + /// The step property + public int? Step { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Range_step() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "max", n => { Max = n.GetIntValue(); } }, + { "min", n => { Min = n.GetIntValue(); } }, + { "step", n => { Step = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Range_step1.cs b/MusicCast.Net.Api.Client/Models/Range_step1.cs new file mode 100644 index 0000000..6a7ba64 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Range_step1.cs @@ -0,0 +1,77 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The max property + public int? Max { get; set; } + /// The min property + public int? Min { get; set; } + /// The step property + public int? Step { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Range_step1() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "max", n => { Max = n.GetIntValue(); } }, + { "min", n => { Min = n.GetIntValue(); } }, + { "step", n => { Step = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Range_step2.cs b/MusicCast.Net.Api.Client/Models/Range_step2.cs new file mode 100644 index 0000000..72b1932 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Range_step2.cs @@ -0,0 +1,77 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The max property + public int? Max { get; set; } + /// The min property + public int? Min { get; set; } + /// The step property + public int? Step { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Range_step2() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "max", n => { Max = n.GetIntValue(); } }, + { "min", n => { Min = n.GetIntValue(); } }, + { "step", n => { Step = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Range_step3.cs b/MusicCast.Net.Api.Client/Models/Range_step3.cs new file mode 100644 index 0000000..8630d2e --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Range_step3.cs @@ -0,0 +1,77 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The max property + public int? Max { get; set; } + /// The min property + public int? Min { get; set; } + /// The step property + public int? Step { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Range_step3() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "max", n => { Max = n.GetIntValue(); } }, + { "min", n => { Min = n.GetIntValue(); } }, + { "step", n => { Step = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Range_step4.cs b/MusicCast.Net.Api.Client/Models/Range_step4.cs new file mode 100644 index 0000000..1a276ef --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Range_step4.cs @@ -0,0 +1,77 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The max property + public int? Max { get; set; } + /// The min property + public int? Min { get; set; } + /// The step property + public int? Step { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Range_step4() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "max", n => { Max = n.GetIntValue(); } }, + { "min", n => { Min = n.GetIntValue(); } }, + { "step", n => { Step = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Recent_info.cs b/MusicCast.Net.Api.Client/Models/Recent_info.cs new file mode 100644 index 0000000..13de907 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Recent_info.cs @@ -0,0 +1,93 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The albumart_url property +#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 + /// The attribute property + public int? Attribute { get; set; } + /// The input property +#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 + /// The play_count property + public int? PlayCount { get; set; } + /// The text property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Recent_info() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "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(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Recent_info2.cs b/MusicCast.Net.Api.Client/Models/Recent_info2.cs new file mode 100644 index 0000000..e2d8a38 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Recent_info2.cs @@ -0,0 +1,59 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The num property + public int? Num { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Recent_info2() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "num", n => { Num = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("num", Num); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Services.cs b/MusicCast.Net.Api.Client/Models/Services.cs new file mode 100644 index 0000000..f32c8b6 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Services.cs @@ -0,0 +1,73 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The confirmed property + public bool? Confirmed { get; set; } + /// The input property +#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 + /// The use_service property + public bool? UseService { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Services() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Services CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Services(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "confirmed", n => { Confirmed = n.GetBoolValue(); } }, + { "input", n => { Input = n.GetStringValue(); } }, + { "use_service", n => { UseService = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Siriusxm.cs b/MusicCast.Net.Api.Client/Models/Siriusxm.cs new file mode 100644 index 0000000..28a1f38 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Siriusxm.cs @@ -0,0 +1,65 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The api_type property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Siriusxm() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Siriusxm CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Siriusxm(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "api_type", n => { ApiType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("api_type", ApiType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Speaker_settings.cs b/MusicCast.Net.Api.Client/Models/Speaker_settings.cs new file mode 100644 index 0000000..0d6b45b --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Speaker_settings.cs @@ -0,0 +1,105 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The common property +#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 + /// The front_l property +#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 + /// The front_r property +#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 + /// The swfr property +#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 + /// The type property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Speaker_settings() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "common", n => { Common = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Common.CreateFromDiscriminatorValue); } }, + { "front_l", n => { FrontL = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Front_l.CreateFromDiscriminatorValue); } }, + { "front_r", n => { FrontR = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Front_r.CreateFromDiscriminatorValue); } }, + { "swfr", n => { Swfr = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Swfr.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("common", Common); + writer.WriteObjectValue("front_l", FrontL); + writer.WriteObjectValue("front_r", FrontR); + writer.WriteObjectValue("swfr", Swfr); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Speaker_size.cs b/MusicCast.Net.Api.Client/Models/Speaker_size.cs new file mode 100644 index 0000000..232dac0 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Speaker_size.cs @@ -0,0 +1,75 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The size_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SizeList { get; set; } +#nullable restore +#else + public List SizeList { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Speaker_size() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "size_list", n => { SizeList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("id", Id); + writer.WriteCollectionOfPrimitiveValues("size_list", SizeList); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Swfr.cs b/MusicCast.Net.Api.Client/Models/Swfr.cs new file mode 100644 index 0000000..f47f17d --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Swfr.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The attribute property + public int? Attribute { get; set; } + /// The range_step property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RangeStep { get; set; } +#nullable restore +#else + public List RangeStep { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Swfr() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Swfr CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Swfr(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attribute", n => { Attribute = n.GetIntValue(); } }, + { "range_step", n => { RangeStep = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Range_step2.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("attribute", Attribute); + writer.WriteCollectionOfObjectValues("range_step", RangeStep); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/System.cs b/MusicCast.Net.Api.Client/Models/System.cs new file mode 100644 index 0000000..ee5ab88 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/System.cs @@ -0,0 +1,99 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The func_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? FuncList { get; set; } +#nullable restore +#else + public List FuncList { get; set; } +#endif + /// The input_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? InputList { get; set; } +#nullable restore +#else + public List InputList { get; set; } +#endif + /// The speaker_settings property +#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 + /// The ypao_speaker_unit_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? YpaoSpeakerUnitList { get; set; } +#nullable restore +#else + public List YpaoSpeakerUnitList { get; set; } +#endif + /// The zone_num property + public int? ZoneNum { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public System() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.System CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.System(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "input_list", n => { InputList = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Input_list.CreateFromDiscriminatorValue)?.AsList(); } }, + { "speaker_settings", n => { SpeakerSettings = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Speaker_settings.CreateFromDiscriminatorValue); } }, + { "ypao_speaker_unit_list", n => { YpaoSpeakerUnitList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "zone_num", n => { ZoneNum = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("func_list", FuncList); + writer.WriteCollectionOfObjectValues("input_list", InputList); + writer.WriteObjectValue("speaker_settings", SpeakerSettings); + writer.WriteCollectionOfPrimitiveValues("ypao_speaker_unit_list", YpaoSpeakerUnitList); + writer.WriteIntValue("zone_num", ZoneNum); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Track_info.cs b/MusicCast.Net.Api.Client/Models/Track_info.cs new file mode 100644 index 0000000..2f6165d --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Track_info.cs @@ -0,0 +1,89 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The attribute property + public int? Attribute { get; set; } + /// The input property +#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 + /// The text property +#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 + /// The thumbnail property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Track_info() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attribute", n => { Attribute = n.GetIntValue(); } }, + { "input", n => { Input = n.GetStringValue(); } }, + { "text", n => { Text = n.GetStringValue(); } }, + { "thumbnail", n => { Thumbnail = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Tuner.cs b/MusicCast.Net.Api.Client/Models/Tuner.cs new file mode 100644 index 0000000..457eeeb --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Tuner.cs @@ -0,0 +1,85 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The func_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? FuncList { get; set; } +#nullable restore +#else + public List FuncList { get; set; } +#endif + /// The preset property +#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 + /// The range_step property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RangeStep { get; set; } +#nullable restore +#else + public List RangeStep { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Tuner() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Tuner CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Tuner(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "preset", n => { Preset = n.GetObjectValue(global::MusicCast.Net.Api.Client.Models.Preset.CreateFromDiscriminatorValue); } }, + { "range_step", n => { RangeStep = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Range_step4.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("func_list", FuncList); + writer.WriteObjectValue("preset", Preset); + writer.WriteCollectionOfObjectValues("range_step", RangeStep); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Zone.cs b/MusicCast.Net.Api.Client/Models/Zone.cs new file mode 100644 index 0000000..4ae8165 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Zone.cs @@ -0,0 +1,125 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The func_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? FuncList { get; set; } +#nullable restore +#else + public List FuncList { get; set; } +#endif + /// The id property +#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 + /// The input_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? InputList { get; set; } +#nullable restore +#else + public List InputList { get; set; } +#endif + /// The link_audio_delay_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? LinkAudioDelayList { get; set; } +#nullable restore +#else + public List LinkAudioDelayList { get; set; } +#endif + /// The link_audio_quality_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? LinkAudioQualityList { get; set; } +#nullable restore +#else + public List LinkAudioQualityList { get; set; } +#endif + /// The link_control_list property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? LinkControlList { get; set; } +#nullable restore +#else + public List LinkControlList { get; set; } +#endif + /// The range_step property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RangeStep { get; set; } +#nullable restore +#else + public List RangeStep { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Zone() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::MusicCast.Net.Api.Client.Models.Zone CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::MusicCast.Net.Api.Client.Models.Zone(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "input_list", n => { InputList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "link_audio_delay_list", n => { LinkAudioDelayList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "link_audio_quality_list", n => { LinkAudioQualityList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "link_control_list", n => { LinkControlList = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "range_step", n => { RangeStep = n.GetCollectionOfObjectValues(global::MusicCast.Net.Api.Client.Models.Range_step3.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("func_list", FuncList); + writer.WriteStringValue("id", Id); + writer.WriteCollectionOfPrimitiveValues("input_list", InputList); + writer.WriteCollectionOfPrimitiveValues("link_audio_delay_list", LinkAudioDelayList); + writer.WriteCollectionOfPrimitiveValues("link_audio_quality_list", LinkAudioQualityList); + writer.WriteCollectionOfPrimitiveValues("link_control_list", LinkControlList); + writer.WriteCollectionOfObjectValues("range_step", RangeStep); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Zone_list.cs b/MusicCast.Net.Api.Client/Models/Zone_list.cs new file mode 100644 index 0000000..54bdc2e --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Zone_list.cs @@ -0,0 +1,59 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The main property + public bool? Main { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Zone_list() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "main", n => { Main = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("main", Main); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/Models/Zone_list2.cs b/MusicCast.Net.Api.Client/Models/Zone_list2.cs new file mode 100644 index 0000000..90cd017 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Zone_list2.cs @@ -0,0 +1,75 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The text property +#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 + /// + /// Instantiates a new and sets the default values. + /// + public Zone_list2() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "text", n => { Text = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/Models/Zone_list3.cs b/MusicCast.Net.Api.Client/Models/Zone_list3.cs new file mode 100644 index 0000000..0cdfdd4 --- /dev/null +++ b/MusicCast.Net.Api.Client/Models/Zone_list3.cs @@ -0,0 +1,69 @@ +// +#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 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id property +#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 + /// The tag property + public int? Tag { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Zone_list3() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::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(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "tag", n => { Tag = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + 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 diff --git a/MusicCast.Net.Api.Client/MusicCast.Net.Api.Client.csproj b/MusicCast.Net.Api.Client/MusicCast.Net.Api.Client.csproj new file mode 100644 index 0000000..52fbcfb --- /dev/null +++ b/MusicCast.Net.Api.Client/MusicCast.Net.Api.Client.csproj @@ -0,0 +1,13 @@ + + + + net9.0 + enable + enable + + + + + + + diff --git a/MusicCast.Net.Api.Client/MusicCast.Net.Api.Server.json b/MusicCast.Net.Api.Client/MusicCast.Net.Api.Server.json new file mode 100644 index 0000000..c4d4dc8 --- /dev/null +++ b/MusicCast.Net.Api.Client/MusicCast.Net.Api.Server.json @@ -0,0 +1,2436 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "MusicCast.Net.Api.Server | v1", + "version": "1.0.0" + }, + "paths": { + "/YamahaExtendedControl/v1/dist/getDistributionInfo": { + "get": { + "tags": [ + "Dist" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetDistributionInfoResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDistributionInfoResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetDistributionInfoResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/main/getStatus": { + "get": { + "tags": [ + "Main" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetStatusResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetStatusResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetStatusResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/main/getSignalInfo": { + "get": { + "tags": [ + "Main" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetSignalInfoResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSignalInfoResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetSignalInfoResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/main/setVolume": { + "get": { + "tags": [ + "Main" + ], + "parameters": [ + { + "name": "volume", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/main/prepareInputChange": { + "get": { + "tags": [ + "Main" + ], + "parameters": [ + { + "name": "input", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/main/setInput": { + "get": { + "tags": [ + "Main" + ], + "parameters": [ + { + "name": "input", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/main/setSleep": { + "get": { + "tags": [ + "Main" + ], + "summary": "Shutdown after the specified interval in minutes", + "parameters": [ + { + "name": "sleep", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/main/setPower": { + "get": { + "tags": [ + "Main" + ], + "parameters": [ + { + "name": "power", + "in": "query", + "schema": { + "enum": [ + "on", + "standby" + ] + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/getMcPlaylistName": { + "get": { + "tags": [ + "NetUsb" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetMcPlaylistNameResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetMcPlaylistNameResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetMcPlaylistNameResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/getStreamingServiceSettings": { + "get": { + "tags": [ + "NetUsb" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetStreamingServiceSettingsResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetStreamingServiceSettingsResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetStreamingServiceSettingsResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/getPlayInfo": { + "get": { + "tags": [ + "NetUsb" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetPlayInfoResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPlayInfoResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetPlayInfoResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/getPlayQueue": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "index", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetPlayQueueResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPlayQueueResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetPlayQueueResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/getRecentInfo": { + "get": { + "tags": [ + "NetUsb" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetRecentInfoResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetRecentInfoResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetRecentInfoResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/recallRecentItem": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "zone", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "num", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/setPlayback": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "playback", + "in": "query", + "schema": { + "enum": [ + "pause", + "previous", + "next", + "stop" + ] + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/toggleShuffle": { + "get": { + "tags": [ + "NetUsb" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/toggleRepeat": { + "get": { + "tags": [ + "NetUsb" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/getListInfo": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "list_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "input", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "size", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "lang", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetListInfoResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetListInfoResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetListInfoResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/setListControl": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "type", + "in": "query", + "schema": { + "enum": [ + "select", + "play", + "return" + ] + } + }, + { + "name": "index", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "zone", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/manageList": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "list_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "enum": [ + "play_now", + "play_next", + "add_to_queue" + ] + } + }, + { + "name": "index", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "timeout", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "zone", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/managePlayQueue": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "type", + "in": "query", + "schema": { + "enum": [ + "play", + "remove" + ] + } + }, + { + "name": "index", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "zone", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/copyPlayQueue": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "index", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/netusb/movePlayQueueItem": { + "get": { + "tags": [ + "NetUsb" + ], + "parameters": [ + { + "name": "from", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "to", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getFeatures": { + "get": { + "tags": [ + "System" + ], + "summary": "Get the available features for this device", + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetFeaturesResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetFeaturesResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetFeaturesResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getLocationInfo": { + "get": { + "tags": [ + "System" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetLocationInfoResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetLocationInfoResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetLocationInfoResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getNameText": { + "get": { + "tags": [ + "System" + ], + "summary": "Get sources friendly names", + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetNameTextResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetNameTextResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetNameTextResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getDeviceInfo": { + "get": { + "tags": [ + "System" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetDeviceInfoResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDeviceInfoResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetDeviceInfoResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/isNewFirmwareAvailable": { + "get": { + "tags": [ + "System" + ], + "parameters": [ + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/IsNewFirmwareAvailableResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/IsNewFirmwareAvailableResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/IsNewFirmwareAvailableResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getFuncStatus": { + "get": { + "tags": [ + "System" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetFuncStatusResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetFuncStatusResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetFuncStatusResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getDisklavierSettings": { + "get": { + "tags": [ + "System" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetDisklavierSettingsResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDisklavierSettingsResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetDisklavierSettingsResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getTag": { + "get": { + "tags": [ + "System" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetTagResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTagResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetTagResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getYpaoConfig": { + "get": { + "tags": [ + "System" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetYpaoConfigResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetYpaoConfigResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetYpaoConfigResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/setSpeakerA": { + "get": { + "tags": [ + "System" + ], + "parameters": [ + { + "name": "enable", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/setSpeakerB": { + "get": { + "tags": [ + "System" + ], + "parameters": [ + { + "name": "enable", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/BaseResponse" + } + } + } + } + } + } + }, + "/YamahaExtendedControl/v1/system/getNetworkStandby": { + "get": { + "tags": [ + "System" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GetNetworkStandbyResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetNetworkStandbyResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetNetworkStandbyResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Audio": { + "type": "object", + "properties": { + "error": { + "type": "integer", + "format": "int32" + }, + "format": { + "type": "string" + }, + "fs": { + "type": "string" + } + } + }, + "BaseResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "string" + } + } + }, + "Ccs": { + "type": "object", + "properties": { + "supported": { + "type": "boolean" + } + } + }, + "Common": { + "type": "object", + "properties": { + "attribute": { + "type": "integer", + "format": "int32" + }, + "swfr_crossover_list": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + }, + "speaker_size": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Speaker_size" + } + } + } + }, + "Disklavier": { + "type": "object", + "properties": { + "ip_address": { + "type": "string" + } + } + }, + "Distribution": { + "type": "object", + "properties": { + "version": { + "type": "integer", + "format": "int32" + }, + "compatible_client": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + }, + "client_max": { + "type": "integer", + "format": "int32" + }, + "server_zone_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Front_l": { + "type": "object", + "properties": { + "attribute": { + "type": "integer", + "format": "int32" + }, + "range_step": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Range_step" + } + } + } + }, + "Front_r": { + "type": "object", + "properties": { + "attribute": { + "type": "integer", + "format": "int32" + }, + "range_step": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Range_step1" + } + } + } + }, + "GetDeviceInfoResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "model_name": { + "type": "string" + }, + "destination": { + "type": "string" + }, + "device_id": { + "type": "string" + }, + "system_id": { + "type": "string" + }, + "system_version": { + "type": "integer", + "format": "int32" + }, + "api_version": { + "type": "number", + "format": "double" + }, + "netmodule_generation": { + "type": "integer", + "format": "int32" + }, + "netmodule_version": { + "type": "string" + }, + "netmodule_checksum": { + "type": "string" + }, + "operation_mode": { + "type": "string" + }, + "update_error_code": { + "type": "string" + } + } + }, + "GetDisklavierSettingsResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "enable": { + "type": "boolean" + }, + "mode": { + "type": "string" + }, + "input": { + "type": "string" + }, + "pair": { + "$ref": "#/components/schemas/Pair" + }, + "disklavier": { + "$ref": "#/components/schemas/Disklavier" + } + } + }, + "GetDistributionInfoResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "group_id": { + "type": "string" + }, + "group_name": { + "type": "string" + }, + "role": { + "type": "string" + }, + "server_zone": { + "type": "string" + }, + "client_list": { + "type": "array" + } + } + }, + "GetFeaturesResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "system": { + "$ref": "#/components/schemas/System" + }, + "zone": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Zone" + } + }, + "tuner": { + "$ref": "#/components/schemas/Tuner" + }, + "netusb": { + "$ref": "#/components/schemas/Netusb" + }, + "distribution": { + "$ref": "#/components/schemas/Distribution" + }, + "ccs": { + "$ref": "#/components/schemas/Ccs" + } + } + }, + "GetFuncStatusResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "auto_power_standby": { + "type": "boolean" + }, + "speaker_a": { + "type": "boolean" + }, + "speaker_b": { + "type": "boolean" + }, + "headphone": { + "type": "boolean" + } + } + }, + "GetListInfoResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "input": { + "type": "string" + }, + "menu_layer": { + "type": "integer", + "format": "int32" + }, + "max_line": { + "type": "integer", + "format": "int32" + }, + "index": { + "type": "integer", + "format": "int32" + }, + "playing_index": { + "type": "integer", + "format": "int32" + }, + "menu_name": { + "type": "string" + }, + "list_info": { + "type": "array", + "items": { + "$ref": "#/components/schemas/List_info" + } + } + } + }, + "GetLocationInfoResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "zone_list": { + "$ref": "#/components/schemas/Zone_list" + } + } + }, + "GetMcPlaylistNameResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "name_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GetNameTextResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "zone_list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Zone_list2" + } + }, + "input_list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Input_list2" + } + }, + "sound_program_list": { + "type": "array" + } + } + }, + "GetNetworkStandbyResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "network_standby": { + "type": "string" + } + } + }, + "GetPlayInfoResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "input": { + "type": "string" + }, + "play_queue_type": { + "type": "string" + }, + "playback": { + "type": "string" + }, + "repeat": { + "type": "string" + }, + "shuffle": { + "type": "string" + }, + "play_time": { + "type": "integer", + "format": "int32" + }, + "total_time": { + "type": "integer", + "format": "int32" + }, + "artist": { + "type": "string" + }, + "album": { + "type": "string" + }, + "track": { + "type": "string" + }, + "albumart_url": { + "type": "string" + }, + "albumart_id": { + "type": "integer", + "format": "int32" + }, + "usb_devicetype": { + "type": "string" + }, + "auto_stopped": { + "type": "boolean" + }, + "attribute": { + "type": "integer", + "format": "int32" + }, + "repeat_available": { + "type": "array", + "items": { + "type": "string" + } + }, + "shuffle_available": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GetPlayQueueResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "type": { + "type": "string" + }, + "max_line": { + "type": "integer", + "format": "int32" + }, + "playing_index": { + "type": "integer", + "format": "int32" + }, + "index": { + "type": "integer", + "format": "int32" + }, + "track_info": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Track_info" + } + } + } + }, + "GetRecentInfoResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "recent_info": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Recent_info" + } + } + } + }, + "GetSignalInfoResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "audio": { + "$ref": "#/components/schemas/Audio" + } + } + }, + "GetStatusResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "power": { + "type": "string" + }, + "sleep": { + "type": "integer", + "format": "int32" + }, + "volume": { + "type": "integer", + "format": "int32" + }, + "mute": { + "type": "boolean" + }, + "max_volume": { + "type": "integer", + "format": "int32" + }, + "input": { + "type": "string" + }, + "distribution_enable": { + "type": "boolean" + }, + "link_control": { + "type": "string" + }, + "link_audio_delay": { + "type": "string" + }, + "link_audio_quality": { + "type": "string" + }, + "disable_flags": { + "type": "integer", + "format": "int32" + } + } + }, + "GetStreamingServiceSettingsResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "services": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Services" + } + } + } + }, + "GetTagResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "zone_list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Zone_list3" + } + }, + "input_list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Input_list3" + } + } + } + }, + "GetYpaoConfigResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "ypao_status": { + "type": "string" + }, + "ypao_setting": { + "type": "boolean" + }, + "ypao_speaker_unit": { + "type": "string" + }, + "ypao_volume": { + "type": "boolean" + }, + "disable_flags": { + "type": "integer", + "format": "int32" + } + } + }, + "Input_list": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "distribution_enable": { + "type": "boolean" + }, + "rename_enable": { + "type": "boolean" + }, + "account_enable": { + "type": "boolean" + }, + "play_info_type": { + "type": "string" + } + } + }, + "Input_list2": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "text": { + "type": "string" + } + } + }, + "Input_list3": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "tag": { + "type": "integer", + "format": "int32" + } + } + }, + "IsNewFirmwareAvailableResponse": { + "type": "object", + "properties": { + "response_code": { + "type": "integer", + "format": "int32" + }, + "available": { + "type": "boolean" + } + } + }, + "List_info": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "subtexts": { + "type": "array" + }, + "thumbnail": { + "type": "string" + }, + "logo": { + "type": "string" + }, + "attribute": { + "type": "integer", + "format": "int32" + } + } + }, + "Mc_playlist": { + "type": "object", + "properties": { + "size": { + "type": "integer", + "format": "int32" + }, + "num": { + "type": "integer", + "format": "int32" + } + } + }, + "Netusb": { + "type": "object", + "properties": { + "func_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "preset": { + "$ref": "#/components/schemas/Preset1" + }, + "recent_info": { + "$ref": "#/components/schemas/Recent_info2" + }, + "play_queue": { + "$ref": "#/components/schemas/Play_queue" + }, + "mc_playlist": { + "$ref": "#/components/schemas/Mc_playlist" + }, + "net_radio_type": { + "type": "string" + }, + "pandora": { + "$ref": "#/components/schemas/Pandora" + }, + "siriusxm": { + "$ref": "#/components/schemas/Siriusxm" + } + } + }, + "Pair": { + "type": "object", + "properties": { + "mac_address": { + "type": "string" + } + } + }, + "Pandora": { + "type": "object", + "properties": { + "sort_option_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Play_queue": { + "type": "object", + "properties": { + "size": { + "type": "integer", + "format": "int32" + } + } + }, + "Preset": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "num": { + "type": "integer", + "format": "int32" + } + } + }, + "Preset1": { + "type": "object", + "properties": { + "num": { + "type": "integer", + "format": "int32" + } + } + }, + "Range_step": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "min": { + "type": "integer", + "format": "int32" + }, + "max": { + "type": "integer", + "format": "int32" + }, + "step": { + "type": "integer", + "format": "int32" + } + } + }, + "Range_step1": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "min": { + "type": "integer", + "format": "int32" + }, + "max": { + "type": "integer", + "format": "int32" + }, + "step": { + "type": "integer", + "format": "int32" + } + } + }, + "Range_step2": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "min": { + "type": "integer", + "format": "int32" + }, + "max": { + "type": "integer", + "format": "int32" + }, + "step": { + "type": "integer", + "format": "int32" + } + } + }, + "Range_step3": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "min": { + "type": "integer", + "format": "int32" + }, + "max": { + "type": "integer", + "format": "int32" + }, + "step": { + "type": "integer", + "format": "int32" + } + } + }, + "Range_step4": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "min": { + "type": "integer", + "format": "int32" + }, + "max": { + "type": "integer", + "format": "int32" + }, + "step": { + "type": "integer", + "format": "int32" + } + } + }, + "Recent_info": { + "type": "object", + "properties": { + "input": { + "type": "string" + }, + "text": { + "type": "string" + }, + "albumart_url": { + "type": "string" + }, + "play_count": { + "type": "integer", + "format": "int32" + }, + "attribute": { + "type": "integer", + "format": "int32" + } + } + }, + "Recent_info2": { + "type": "object", + "properties": { + "num": { + "type": "integer", + "format": "int32" + } + } + }, + "Services": { + "type": "object", + "properties": { + "input": { + "type": "string" + }, + "confirmed": { + "type": "boolean" + }, + "use_service": { + "type": "boolean" + } + } + }, + "Siriusxm": { + "type": "object", + "properties": { + "api_type": { + "type": "string" + } + } + }, + "Speaker_settings": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "common": { + "$ref": "#/components/schemas/Common" + }, + "front_l": { + "$ref": "#/components/schemas/Front_l" + }, + "front_r": { + "$ref": "#/components/schemas/Front_r" + }, + "swfr": { + "$ref": "#/components/schemas/Swfr" + } + } + }, + "Speaker_size": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Swfr": { + "type": "object", + "properties": { + "attribute": { + "type": "integer", + "format": "int32" + }, + "range_step": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Range_step2" + } + } + } + }, + "System": { + "type": "object", + "properties": { + "func_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "zone_num": { + "type": "integer", + "format": "int32" + }, + "input_list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Input_list" + } + }, + "speaker_settings": { + "$ref": "#/components/schemas/Speaker_settings" + }, + "ypao_speaker_unit_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Track_info": { + "type": "object", + "properties": { + "input": { + "type": "string" + }, + "text": { + "type": "string" + }, + "thumbnail": { + "type": "string" + }, + "attribute": { + "type": "integer", + "format": "int32" + } + } + }, + "Tuner": { + "type": "object", + "properties": { + "func_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "range_step": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Range_step4" + } + }, + "preset": { + "$ref": "#/components/schemas/Preset" + } + } + }, + "Zone": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "func_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "input_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "link_control_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "link_audio_delay_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "link_audio_quality_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "range_step": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Range_step3" + } + } + } + }, + "Zone_list": { + "type": "object", + "properties": { + "main": { + "type": "boolean" + } + } + }, + "Zone_list2": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "text": { + "type": "string" + } + } + }, + "Zone_list3": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "tag": { + "type": "integer", + "format": "int32" + } + } + } + } + }, + "tags": [ + { + "name": "Dist" + }, + { + "name": "Main" + }, + { + "name": "NetUsb" + }, + { + "name": "System" + } + ] +} \ No newline at end of file diff --git a/MusicCast.Net.Api.Client/MusicCastApiClient.cs b/MusicCast.Net.Api.Client/MusicCastApiClient.cs new file mode 100644 index 0000000..848c90c --- /dev/null +++ b/MusicCast.Net.Api.Client/MusicCastApiClient.cs @@ -0,0 +1,43 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Serialization.Form; +using Microsoft.Kiota.Serialization.Json; +using Microsoft.Kiota.Serialization.Multipart; +using Microsoft.Kiota.Serialization.Text; +using MusicCast.Net.Api.Client.YamahaExtendedControl; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace MusicCast.Net.Api.Client +{ + /// + /// The main entry point of the SDK, exposes the configuration and the fluent API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MusicCastApiClient : BaseRequestBuilder + { + /// The YamahaExtendedControl property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.YamahaExtendedControlRequestBuilder YamahaExtendedControl + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.YamahaExtendedControlRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// The request adapter to use to execute the requests. + public MusicCastApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) + { + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Dist/DistRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Dist/DistRequestBuilder.cs new file mode 100644 index 0000000..9c76b01 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Dist/DistRequestBuilder.cs @@ -0,0 +1,41 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\dist + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DistRequestBuilder : BaseRequestBuilder + { + /// The getDistributionInfo property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo.GetDistributionInfoRequestBuilder GetDistributionInfo + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo.GetDistributionInfoRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DistRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DistRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Dist/GetDistributionInfo/GetDistributionInfoRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Dist/GetDistributionInfo/GetDistributionInfoRequestBuilder.cs new file mode 100644 index 0000000..32530ce --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Dist/GetDistributionInfo/GetDistributionInfoRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\dist\getDistributionInfo + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetDistributionInfoRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetDistributionInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist/getDistributionInfo", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetDistributionInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist/getDistributionInfo", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo.GetDistributionInfoRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo.GetDistributionInfoRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/GetSignalInfo/GetSignalInfoRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/GetSignalInfo/GetSignalInfoRequestBuilder.cs new file mode 100644 index 0000000..8e50d62 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/GetSignalInfo/GetSignalInfoRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\getSignalInfo + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetSignalInfoRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetSignalInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getSignalInfo", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetSignalInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getSignalInfo", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo.GetSignalInfoRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo.GetSignalInfoRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/GetStatus/GetStatusRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/GetStatus/GetStatusRequestBuilder.cs new file mode 100644 index 0000000..5ed5471 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/GetStatus/GetStatusRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\getStatus + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetStatusRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetStatusRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getStatus", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getStatus", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetStatusResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus.GetStatusRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus.GetStatusRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/MainRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/MainRequestBuilder.cs new file mode 100644 index 0000000..94ce606 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/MainRequestBuilder.cs @@ -0,0 +1,77 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MainRequestBuilder : BaseRequestBuilder + { + /// The getSignalInfo property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo.GetSignalInfoRequestBuilder GetSignalInfo + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo.GetSignalInfoRequestBuilder(PathParameters, RequestAdapter); + } + /// The getStatus property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus.GetStatusRequestBuilder GetStatus + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus.GetStatusRequestBuilder(PathParameters, RequestAdapter); + } + /// The prepareInputChange property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder PrepareInputChange + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder(PathParameters, RequestAdapter); + } + /// The setInput property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder SetInput + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder(PathParameters, RequestAdapter); + } + /// The setPower property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder SetPower + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder(PathParameters, RequestAdapter); + } + /// The setSleep property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder SetSleep + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder(PathParameters, RequestAdapter); + } + /// The setVolume property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder SetVolume + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MainRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MainRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/PrepareInputChange/PrepareInputChangeRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/PrepareInputChange/PrepareInputChangeRequestBuilder.cs new file mode 100644 index 0000000..e97bdda --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/PrepareInputChange/PrepareInputChangeRequestBuilder.cs @@ -0,0 +1,93 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\prepareInputChange + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PrepareInputChangeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrepareInputChangeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/prepareInputChange{?input*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrepareInputChangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/prepareInputChange{?input*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PrepareInputChangeRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("input")] + public string? Input { get; set; } +#nullable restore +#else + [QueryParameter("input")] + public string Input { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetInput/SetInputRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetInput/SetInputRequestBuilder.cs new file mode 100644 index 0000000..eae0d87 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetInput/SetInputRequestBuilder.cs @@ -0,0 +1,93 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setInput + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetInputRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetInputRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setInput{?input*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetInputRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setInput{?input*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SetInputRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("input")] + public string? Input { get; set; } +#nullable restore +#else + [QueryParameter("input")] + public string Input { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetPower/GetPowerQueryParameterType.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetPower/GetPowerQueryParameterType.cs new file mode 100644 index 0000000..ad12fcf --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetPower/GetPowerQueryParameterType.cs @@ -0,0 +1,20 @@ +// +using System.Runtime.Serialization; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum GetPowerQueryParameterType + #pragma warning restore CS1591 + { + [EnumMember(Value = "on")] + #pragma warning disable CS1591 + On, + #pragma warning restore CS1591 + [EnumMember(Value = "standby")] + #pragma warning disable CS1591 + Standby, + #pragma warning restore CS1591 + } +} diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetPower/SetPowerRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetPower/SetPowerRequestBuilder.cs new file mode 100644 index 0000000..2d48fcc --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetPower/SetPowerRequestBuilder.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setPower + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetPowerRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetPowerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setPower{?power*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetPowerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setPower{?power*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SetPowerRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("power")] + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.GetPowerQueryParameterType? Power { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetSleep/SetSleepRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetSleep/SetSleepRequestBuilder.cs new file mode 100644 index 0000000..f681189 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetSleep/SetSleepRequestBuilder.cs @@ -0,0 +1,93 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setSleep + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSleepRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetSleepRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setSleep{?sleep*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetSleepRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setSleep{?sleep*}", rawUrl) + { + } + /// + /// Shutdown after the specified interval in minutes + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Shutdown after the specified interval in minutes + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Shutdown after the specified interval in minutes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSleepRequestBuilderGetQueryParameters + { + [QueryParameter("sleep")] + public int? Sleep { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetVolume/SetVolumeRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetVolume/SetVolumeRequestBuilder.cs new file mode 100644 index 0000000..19b79b6 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Main/SetVolume/SetVolumeRequestBuilder.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setVolume + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetVolumeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetVolumeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setVolume{?volume*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetVolumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setVolume{?volume*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SetVolumeRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("volume")] + public int? Volume { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/CopyPlayQueue/CopyPlayQueueRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/CopyPlayQueue/CopyPlayQueueRequestBuilder.cs new file mode 100644 index 0000000..30dcc74 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/CopyPlayQueue/CopyPlayQueueRequestBuilder.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\copyPlayQueue + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyPlayQueueRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CopyPlayQueueRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/copyPlayQueue{?index*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CopyPlayQueueRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/copyPlayQueue{?index*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CopyPlayQueueRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("index")] + public int? Index { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetListInfo/GetListInfoRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetListInfo/GetListInfoRequestBuilder.cs new file mode 100644 index 0000000..7ef54fb --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetListInfo/GetListInfoRequestBuilder.cs @@ -0,0 +1,113 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getListInfo + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetListInfoRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetListInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getListInfo{?input*,lang*,list_id*,size*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetListInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getListInfo{?input*,lang*,list_id*,size*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetListInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetListInfoRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("input")] + public string? Input { get; set; } +#nullable restore +#else + [QueryParameter("input")] + public string Input { get; set; } +#endif +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("lang")] + public string? Lang { get; set; } +#nullable restore +#else + [QueryParameter("lang")] + public string Lang { get; set; } +#endif +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("list_id")] + public string? ListId { get; set; } +#nullable restore +#else + [QueryParameter("list_id")] + public string ListId { get; set; } +#endif + [QueryParameter("size")] + public int? Size { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetMcPlaylistName/GetMcPlaylistNameRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetMcPlaylistName/GetMcPlaylistNameRequestBuilder.cs new file mode 100644 index 0000000..7cde2aa --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetMcPlaylistName/GetMcPlaylistNameRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getMcPlaylistName + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMcPlaylistNameRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetMcPlaylistNameRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getMcPlaylistName", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetMcPlaylistNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getMcPlaylistName", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName.GetMcPlaylistNameRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName.GetMcPlaylistNameRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetPlayInfo/GetPlayInfoRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetPlayInfo/GetPlayInfoRequestBuilder.cs new file mode 100644 index 0000000..7c5a8a3 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetPlayInfo/GetPlayInfoRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getPlayInfo + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPlayInfoRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetPlayInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayInfo", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetPlayInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayInfo", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo.GetPlayInfoRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo.GetPlayInfoRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetPlayQueue/GetPlayQueueRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetPlayQueue/GetPlayQueueRequestBuilder.cs new file mode 100644 index 0000000..b87312c --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetPlayQueue/GetPlayQueueRequestBuilder.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getPlayQueue + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPlayQueueRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetPlayQueueRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayQueue{?index*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetPlayQueueRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayQueue{?index*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetPlayQueueRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("index")] + public int? Index { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetRecentInfo/GetRecentInfoRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetRecentInfo/GetRecentInfoRequestBuilder.cs new file mode 100644 index 0000000..00b78ae --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetRecentInfo/GetRecentInfoRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getRecentInfo + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetRecentInfoRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetRecentInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getRecentInfo", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetRecentInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getRecentInfo", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo.GetRecentInfoRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo.GetRecentInfoRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetStreamingServiceSettings/GetStreamingServiceSettingsRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetStreamingServiceSettings/GetStreamingServiceSettingsRequestBuilder.cs new file mode 100644 index 0000000..5741c34 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/GetStreamingServiceSettings/GetStreamingServiceSettingsRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getStreamingServiceSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetStreamingServiceSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetStreamingServiceSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getStreamingServiceSettings", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetStreamingServiceSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getStreamingServiceSettings", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings.GetStreamingServiceSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings.GetStreamingServiceSettingsRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManageList/GetTypeQueryParameterType.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManageList/GetTypeQueryParameterType.cs new file mode 100644 index 0000000..93db0a9 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManageList/GetTypeQueryParameterType.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum GetTypeQueryParameterType + #pragma warning restore CS1591 + { + [EnumMember(Value = "play_now")] + #pragma warning disable CS1591 + Play_now, + #pragma warning restore CS1591 + [EnumMember(Value = "play_next")] + #pragma warning disable CS1591 + Play_next, + #pragma warning restore CS1591 + [EnumMember(Value = "add_to_queue")] + #pragma warning disable CS1591 + Add_to_queue, + #pragma warning restore CS1591 + } +} diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManageList/ManageListRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManageList/ManageListRequestBuilder.cs new file mode 100644 index 0000000..b0beeb4 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManageList/ManageListRequestBuilder.cs @@ -0,0 +1,108 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\manageList + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManageListRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ManageListRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/manageList{?index*,list_id*,timeout*,type*,zone*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ManageListRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/manageList{?index*,list_id*,timeout*,type*,zone*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ManageListRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("index")] + public int? Index { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("list_id")] + public string? ListId { get; set; } +#nullable restore +#else + [QueryParameter("list_id")] + public string ListId { get; set; } +#endif + [QueryParameter("timeout")] + public int? Timeout { get; set; } + [QueryParameter("type")] + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.GetTypeQueryParameterType? Type { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("zone")] + public string? Zone { get; set; } +#nullable restore +#else + [QueryParameter("zone")] + public string Zone { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManagePlayQueue/GetTypeQueryParameterType.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManagePlayQueue/GetTypeQueryParameterType.cs new file mode 100644 index 0000000..d8c4614 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManagePlayQueue/GetTypeQueryParameterType.cs @@ -0,0 +1,20 @@ +// +using System.Runtime.Serialization; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum GetTypeQueryParameterType + #pragma warning restore CS1591 + { + [EnumMember(Value = "play")] + #pragma warning disable CS1591 + Play, + #pragma warning restore CS1591 + [EnumMember(Value = "remove")] + #pragma warning disable CS1591 + Remove, + #pragma warning restore CS1591 + } +} diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManagePlayQueue/ManagePlayQueueRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManagePlayQueue/ManagePlayQueueRequestBuilder.cs new file mode 100644 index 0000000..6213e72 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ManagePlayQueue/ManagePlayQueueRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\managePlayQueue + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagePlayQueueRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ManagePlayQueueRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/managePlayQueue{?index*,type*,zone*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ManagePlayQueueRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/managePlayQueue{?index*,type*,zone*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ManagePlayQueueRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("index")] + public int? Index { get; set; } + [QueryParameter("type")] + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.GetTypeQueryParameterType? Type { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("zone")] + public string? Zone { get; set; } +#nullable restore +#else + [QueryParameter("zone")] + public string Zone { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/MovePlayQueueItem/MovePlayQueueItemRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/MovePlayQueueItem/MovePlayQueueItemRequestBuilder.cs new file mode 100644 index 0000000..9b14feb --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/MovePlayQueueItem/MovePlayQueueItemRequestBuilder.cs @@ -0,0 +1,88 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\movePlayQueueItem + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MovePlayQueueItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MovePlayQueueItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/movePlayQueueItem{?from*,to*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MovePlayQueueItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/movePlayQueueItem{?from*,to*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MovePlayQueueItemRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("from")] + public int? From { get; set; } + [QueryParameter("to")] + public int? To { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/NetusbRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/NetusbRequestBuilder.cs new file mode 100644 index 0000000..0696c24 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/NetusbRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NetusbRequestBuilder : BaseRequestBuilder + { + /// The copyPlayQueue property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder CopyPlayQueue + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder(PathParameters, RequestAdapter); + } + /// The getListInfo property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder GetListInfo + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder(PathParameters, RequestAdapter); + } + /// The getMcPlaylistName property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName.GetMcPlaylistNameRequestBuilder GetMcPlaylistName + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName.GetMcPlaylistNameRequestBuilder(PathParameters, RequestAdapter); + } + /// The getPlayInfo property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo.GetPlayInfoRequestBuilder GetPlayInfo + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo.GetPlayInfoRequestBuilder(PathParameters, RequestAdapter); + } + /// The getPlayQueue property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder GetPlayQueue + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder(PathParameters, RequestAdapter); + } + /// The getRecentInfo property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo.GetRecentInfoRequestBuilder GetRecentInfo + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo.GetRecentInfoRequestBuilder(PathParameters, RequestAdapter); + } + /// The getStreamingServiceSettings property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings.GetStreamingServiceSettingsRequestBuilder GetStreamingServiceSettings + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings.GetStreamingServiceSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// The manageList property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder ManageList + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder(PathParameters, RequestAdapter); + } + /// The managePlayQueue property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder ManagePlayQueue + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder(PathParameters, RequestAdapter); + } + /// The movePlayQueueItem property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder MovePlayQueueItem + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder(PathParameters, RequestAdapter); + } + /// The recallRecentItem property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder RecallRecentItem + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder(PathParameters, RequestAdapter); + } + /// The setListControl property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder SetListControl + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder(PathParameters, RequestAdapter); + } + /// The setPlayback property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder SetPlayback + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder(PathParameters, RequestAdapter); + } + /// The toggleRepeat property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat.ToggleRepeatRequestBuilder ToggleRepeat + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat.ToggleRepeatRequestBuilder(PathParameters, RequestAdapter); + } + /// The toggleShuffle property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle.ToggleShuffleRequestBuilder ToggleShuffle + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle.ToggleShuffleRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public NetusbRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public NetusbRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/RecallRecentItem/RecallRecentItemRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/RecallRecentItem/RecallRecentItemRequestBuilder.cs new file mode 100644 index 0000000..316afe3 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/RecallRecentItem/RecallRecentItemRequestBuilder.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\recallRecentItem + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RecallRecentItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RecallRecentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/recallRecentItem{?num*,zone*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RecallRecentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/recallRecentItem{?num*,zone*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RecallRecentItemRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("num")] + public int? Num { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("zone")] + public string? Zone { get; set; } +#nullable restore +#else + [QueryParameter("zone")] + public string Zone { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetListControl/GetTypeQueryParameterType.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetListControl/GetTypeQueryParameterType.cs new file mode 100644 index 0000000..50d16e2 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetListControl/GetTypeQueryParameterType.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum GetTypeQueryParameterType + #pragma warning restore CS1591 + { + [EnumMember(Value = "select")] + #pragma warning disable CS1591 + Select, + #pragma warning restore CS1591 + [EnumMember(Value = "play")] + #pragma warning disable CS1591 + Play, + #pragma warning restore CS1591 + [EnumMember(Value = "return")] + #pragma warning disable CS1591 + Return, + #pragma warning restore CS1591 + } +} diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetListControl/SetListControlRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetListControl/SetListControlRequestBuilder.cs new file mode 100644 index 0000000..b289b32 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetListControl/SetListControlRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\setListControl + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetListControlRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetListControlRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setListControl{?index*,type*,zone*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetListControlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setListControl{?index*,type*,zone*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SetListControlRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("index")] + public int? Index { get; set; } + [QueryParameter("type")] + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.GetTypeQueryParameterType? Type { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("zone")] + public string? Zone { get; set; } +#nullable restore +#else + [QueryParameter("zone")] + public string Zone { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetPlayback/GetPlaybackQueryParameterType.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetPlayback/GetPlaybackQueryParameterType.cs new file mode 100644 index 0000000..428a457 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetPlayback/GetPlaybackQueryParameterType.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum GetPlaybackQueryParameterType + #pragma warning restore CS1591 + { + [EnumMember(Value = "pause")] + #pragma warning disable CS1591 + Pause, + #pragma warning restore CS1591 + [EnumMember(Value = "previous")] + #pragma warning disable CS1591 + Previous, + #pragma warning restore CS1591 + [EnumMember(Value = "next")] + #pragma warning disable CS1591 + Next, + #pragma warning restore CS1591 + [EnumMember(Value = "stop")] + #pragma warning disable CS1591 + Stop, + #pragma warning restore CS1591 + } +} diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetPlayback/SetPlaybackRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetPlayback/SetPlaybackRequestBuilder.cs new file mode 100644 index 0000000..b08bf6f --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/SetPlayback/SetPlaybackRequestBuilder.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\setPlayback + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetPlaybackRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetPlaybackRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setPlayback{?playback*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetPlaybackRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setPlayback{?playback*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SetPlaybackRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("playback")] + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.GetPlaybackQueryParameterType? Playback { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ToggleRepeat/ToggleRepeatRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ToggleRepeat/ToggleRepeatRequestBuilder.cs new file mode 100644 index 0000000..19314c4 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ToggleRepeat/ToggleRepeatRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\toggleRepeat + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToggleRepeatRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ToggleRepeatRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleRepeat", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ToggleRepeatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleRepeat", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat.ToggleRepeatRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat.ToggleRepeatRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ToggleShuffle/ToggleShuffleRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ToggleShuffle/ToggleShuffleRequestBuilder.cs new file mode 100644 index 0000000..a81e549 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/Netusb/ToggleShuffle/ToggleShuffleRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\toggleShuffle + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToggleShuffleRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ToggleShuffleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleShuffle", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ToggleShuffleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleShuffle", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle.ToggleShuffleRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle.ToggleShuffleRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetDeviceInfo/GetDeviceInfoRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetDeviceInfo/GetDeviceInfoRequestBuilder.cs new file mode 100644 index 0000000..17d3fde --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetDeviceInfo/GetDeviceInfoRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getDeviceInfo + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetDeviceInfoRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetDeviceInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDeviceInfo", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetDeviceInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDeviceInfo", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo.GetDeviceInfoRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo.GetDeviceInfoRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetDisklavierSettings/GetDisklavierSettingsRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetDisklavierSettings/GetDisklavierSettingsRequestBuilder.cs new file mode 100644 index 0000000..9b7f770 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetDisklavierSettings/GetDisklavierSettingsRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getDisklavierSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetDisklavierSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetDisklavierSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDisklavierSettings", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetDisklavierSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDisklavierSettings", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings.GetDisklavierSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings.GetDisklavierSettingsRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetFeatures/GetFeaturesRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetFeatures/GetFeaturesRequestBuilder.cs new file mode 100644 index 0000000..77d4d99 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetFeatures/GetFeaturesRequestBuilder.cs @@ -0,0 +1,84 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getFeatures + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetFeaturesRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetFeaturesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFeatures", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetFeaturesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFeatures", rawUrl) + { + } + /// + /// Get the available features for this device + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the available features for this device + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures.GetFeaturesRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures.GetFeaturesRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetFuncStatus/GetFuncStatusRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetFuncStatus/GetFuncStatusRequestBuilder.cs new file mode 100644 index 0000000..ffdda1b --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetFuncStatus/GetFuncStatusRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getFuncStatus + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetFuncStatusRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetFuncStatusRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFuncStatus", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetFuncStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFuncStatus", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus.GetFuncStatusRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus.GetFuncStatusRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetLocationInfo/GetLocationInfoRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetLocationInfo/GetLocationInfoRequestBuilder.cs new file mode 100644 index 0000000..2f701e5 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetLocationInfo/GetLocationInfoRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getLocationInfo + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetLocationInfoRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetLocationInfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getLocationInfo", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetLocationInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getLocationInfo", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo.GetLocationInfoRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo.GetLocationInfoRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetNameText/GetNameTextRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetNameText/GetNameTextRequestBuilder.cs new file mode 100644 index 0000000..0f87d96 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetNameText/GetNameTextRequestBuilder.cs @@ -0,0 +1,84 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getNameText + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetNameTextRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetNameTextRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNameText", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetNameTextRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNameText", rawUrl) + { + } + /// + /// Get sources friendly names + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetNameTextResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Get sources friendly names + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText.GetNameTextRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText.GetNameTextRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetNetworkStandby/GetNetworkStandbyRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetNetworkStandby/GetNetworkStandbyRequestBuilder.cs new file mode 100644 index 0000000..da21505 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetNetworkStandby/GetNetworkStandbyRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getNetworkStandby + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetNetworkStandbyRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetNetworkStandbyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNetworkStandby", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetNetworkStandbyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNetworkStandby", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby.GetNetworkStandbyRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby.GetNetworkStandbyRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetTag/GetTagRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetTag/GetTagRequestBuilder.cs new file mode 100644 index 0000000..60e974f --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetTag/GetTagRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getTag + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetTagRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetTagRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getTag", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetTagRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getTag", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetTagResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag.GetTagRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag.GetTagRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetYpaoConfig/GetYpaoConfigRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetYpaoConfig/GetYpaoConfigRequestBuilder.cs new file mode 100644 index 0000000..eb22ea7 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/GetYpaoConfig/GetYpaoConfigRequestBuilder.cs @@ -0,0 +1,78 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getYpaoConfig + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetYpaoConfigRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetYpaoConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getYpaoConfig", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetYpaoConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getYpaoConfig", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig.GetYpaoConfigRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig.GetYpaoConfigRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/IsNewFirmwareAvailable/IsNewFirmwareAvailableRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/IsNewFirmwareAvailable/IsNewFirmwareAvailableRequestBuilder.cs new file mode 100644 index 0000000..3e93ae5 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/IsNewFirmwareAvailable/IsNewFirmwareAvailableRequestBuilder.cs @@ -0,0 +1,93 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.IsNewFirmwareAvailable +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\isNewFirmwareAvailable + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsNewFirmwareAvailableRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public IsNewFirmwareAvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/isNewFirmwareAvailable{?type*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public IsNewFirmwareAvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/isNewFirmwareAvailable{?type*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.IsNewFirmwareAvailable.IsNewFirmwareAvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.IsNewFirmwareAvailable.IsNewFirmwareAvailableRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class IsNewFirmwareAvailableRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("type")] + public string? Type { get; set; } +#nullable restore +#else + [QueryParameter("type")] + public string Type { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SetSpeakerA/SetSpeakerARequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SetSpeakerA/SetSpeakerARequestBuilder.cs new file mode 100644 index 0000000..7049c30 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SetSpeakerA/SetSpeakerARequestBuilder.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerA +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\setSpeakerA + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSpeakerARequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetSpeakerARequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/setSpeakerA{?enable*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetSpeakerARequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/setSpeakerA{?enable*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerA.SetSpeakerARequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerA.SetSpeakerARequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SetSpeakerARequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("enable")] + public bool? Enable { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SetSpeakerB/SetSpeakerBRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SetSpeakerB/SetSpeakerBRequestBuilder.cs new file mode 100644 index 0000000..b56d170 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SetSpeakerB/SetSpeakerBRequestBuilder.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.Models; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerB +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\setSpeakerB + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSpeakerBRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetSpeakerBRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/setSpeakerB{?enable*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetSpeakerBRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/setSpeakerB{?enable*}", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json, text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerB.SetSpeakerBRequestBuilder WithUrl(string rawUrl) + { + return new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerB.SetSpeakerBRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SetSpeakerBRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("enable")] + public bool? Enable { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SystemRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SystemRequestBuilder.cs new file mode 100644 index 0000000..d65bbf5 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/System/SystemRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.IsNewFirmwareAvailable; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerA; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerB; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1\system + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SystemRequestBuilder : BaseRequestBuilder + { + /// The getDeviceInfo property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo.GetDeviceInfoRequestBuilder GetDeviceInfo + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo.GetDeviceInfoRequestBuilder(PathParameters, RequestAdapter); + } + /// The getDisklavierSettings property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings.GetDisklavierSettingsRequestBuilder GetDisklavierSettings + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings.GetDisklavierSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// The getFeatures property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures.GetFeaturesRequestBuilder GetFeatures + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures.GetFeaturesRequestBuilder(PathParameters, RequestAdapter); + } + /// The getFuncStatus property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus.GetFuncStatusRequestBuilder GetFuncStatus + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus.GetFuncStatusRequestBuilder(PathParameters, RequestAdapter); + } + /// The getLocationInfo property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo.GetLocationInfoRequestBuilder GetLocationInfo + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo.GetLocationInfoRequestBuilder(PathParameters, RequestAdapter); + } + /// The getNameText property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText.GetNameTextRequestBuilder GetNameText + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText.GetNameTextRequestBuilder(PathParameters, RequestAdapter); + } + /// The getNetworkStandby property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby.GetNetworkStandbyRequestBuilder GetNetworkStandby + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby.GetNetworkStandbyRequestBuilder(PathParameters, RequestAdapter); + } + /// The getTag property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag.GetTagRequestBuilder GetTag + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag.GetTagRequestBuilder(PathParameters, RequestAdapter); + } + /// The getYpaoConfig property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig.GetYpaoConfigRequestBuilder GetYpaoConfig + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig.GetYpaoConfigRequestBuilder(PathParameters, RequestAdapter); + } + /// The isNewFirmwareAvailable property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.IsNewFirmwareAvailable.IsNewFirmwareAvailableRequestBuilder IsNewFirmwareAvailable + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.IsNewFirmwareAvailable.IsNewFirmwareAvailableRequestBuilder(PathParameters, RequestAdapter); + } + /// The setSpeakerA property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerA.SetSpeakerARequestBuilder SetSpeakerA + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerA.SetSpeakerARequestBuilder(PathParameters, RequestAdapter); + } + /// The setSpeakerB property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerB.SetSpeakerBRequestBuilder SetSpeakerB + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SetSpeakerB.SetSpeakerBRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SystemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SystemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/V1RequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/V1RequestBuilder.cs new file mode 100644 index 0000000..196add8 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/V1/V1RequestBuilder.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl.V1 +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl\v1 + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class V1RequestBuilder : BaseRequestBuilder + { + /// The dist property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.DistRequestBuilder Dist + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.DistRequestBuilder(PathParameters, RequestAdapter); + } + /// The main property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.MainRequestBuilder Main + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.MainRequestBuilder(PathParameters, RequestAdapter); + } + /// The netusb property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.NetusbRequestBuilder Netusb + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.NetusbRequestBuilder(PathParameters, RequestAdapter); + } + /// The system property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SystemRequestBuilder System + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.SystemRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public V1RequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public V1RequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/YamahaExtendedControl/YamahaExtendedControlRequestBuilder.cs b/MusicCast.Net.Api.Client/YamahaExtendedControl/YamahaExtendedControlRequestBuilder.cs new file mode 100644 index 0000000..def2eb0 --- /dev/null +++ b/MusicCast.Net.Api.Client/YamahaExtendedControl/YamahaExtendedControlRequestBuilder.cs @@ -0,0 +1,41 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace MusicCast.Net.Api.Client.YamahaExtendedControl +{ + /// + /// Builds and executes requests for operations under \YamahaExtendedControl + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class YamahaExtendedControlRequestBuilder : BaseRequestBuilder + { + /// The v1 property + public global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.V1RequestBuilder V1 + { + get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.V1RequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public YamahaExtendedControlRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public YamahaExtendedControlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/MusicCast.Net.Api.Client/generate.fish b/MusicCast.Net.Api.Client/generate.fish new file mode 100644 index 0000000..b8b4048 --- /dev/null +++ b/MusicCast.Net.Api.Client/generate.fish @@ -0,0 +1,3 @@ +#!/usr/bin/fish + +kiota.exe generate -l Csharp -c MusicCastApiClient -n MusicCast.Net.Api.Client -d MusicCast.Net.Api.Server.json -o . --exclude-backward-compatible diff --git a/MusicCast.Net.Api.Client/kiota-lock.json b/MusicCast.Net.Api.Client/kiota-lock.json new file mode 100644 index 0000000..2a5c12f --- /dev/null +++ b/MusicCast.Net.Api.Client/kiota-lock.json @@ -0,0 +1,34 @@ +{ + "descriptionHash": "C948E365F06EF135D929D78013E8AA08B1DD90FE86A80A3C7F3495672B6F1C32F98B1AAA7F84A151FAB4B0B8D12DB49F46CCCA14DE96A06143E25983F49846AA", + "descriptionLocation": "MusicCast.Net.Api.Server.json", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.26.1", + "clientClassName": "MusicCastApiClient", + "typeAccessModifier": "Public", + "clientNamespaceName": "MusicCast.Net.Api.Client", + "language": "CSharp", + "usesBackingStore": false, + "excludeBackwardCompatible": true, + "includeAdditionalData": true, + "disableSSLValidation": false, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain;q=0.9", + "application/x-www-form-urlencoded;q=0.2", + "multipart/form-data;q=0.1" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [] +} \ No newline at end of file diff --git a/MusicCast.Net.Client/MusicCast.Net.Client.csproj b/MusicCast.Net.Client/MusicCast.Net.Client.csproj new file mode 100644 index 0000000..b1fdc03 --- /dev/null +++ b/MusicCast.Net.Client/MusicCast.Net.Client.csproj @@ -0,0 +1,13 @@ + + + + net9.0 + enable + enable + + + + + + + diff --git a/MusicCast.Net.Test/MusicCast.Net.Test.csproj b/MusicCast.Net.Test/MusicCast.Net.Test.csproj new file mode 100644 index 0000000..2620762 --- /dev/null +++ b/MusicCast.Net.Test/MusicCast.Net.Test.csproj @@ -0,0 +1,14 @@ + + + + Exe + net9.0 + enable + enable + + + + + + + diff --git a/MusicCast.Net.Test/Program.cs b/MusicCast.Net.Test/Program.cs new file mode 100644 index 0000000..6bd39aa --- /dev/null +++ b/MusicCast.Net.Test/Program.cs @@ -0,0 +1,39 @@ +// See https://aka.ms/new-console-template for more information + +// API requires no authentication, so use the anonymous +// authentication provider + +using System.Text.Json; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; +using MusicCast.Net.Api.Client; +using MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower; + +// API requires no authentication, so use the anonymous +// authentication provider +var authProvider = new AnonymousAuthenticationProvider(); + +// Create request adapter using the HttpClient-based implementation +using var adapter = new HttpClientRequestAdapter(authProvider); +adapter.BaseUrl = "http://192.168.129.21"; + +var client = new MusicCastApiClient(adapter); + +var status = await client.YamahaExtendedControl.V1.Main.GetStatus.GetAsync(); +Console.WriteLine(status!.Power); + +await client.YamahaExtendedControl.V1.Main.SetPower.GetAsync(conf => conf.QueryParameters.Power = GetPowerQueryParameterType.On); + +await Task.Delay(5000); + +status = await client.YamahaExtendedControl.V1.Main.GetStatus.GetAsync(); +Console.WriteLine(status!.Power); + +await client.YamahaExtendedControl.V1.Main.SetPower.GetAsync(r => + r.QueryParameters.Power = GetPowerQueryParameterType.Standby + ); + +await Task.Delay(5000); + +status = await client.YamahaExtendedControl.V1.Main.GetStatus.GetAsync(); +Console.WriteLine(status!.Power); \ No newline at end of file diff --git a/MusicCast.Net.sln b/MusicCast.Net.sln index a8b9b65..ac9a81f 100644 --- a/MusicCast.Net.sln +++ b/MusicCast.Net.sln @@ -2,6 +2,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MusicCast.Net.Api.Server", "MusicCast.Net.Api.Server\MusicCast.Net.Api.Server.csproj", "{7FE615F0-07A3-4A1D-8144-E22B96639F8B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MusicCast.Net.Api.Client", "MusicCast.Net.Api.Client\MusicCast.Net.Api.Client.csproj", "{8B016C28-56F7-46AA-8FEE-D42062FC0F7E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MusicCast.Net.Test", "MusicCast.Net.Test\MusicCast.Net.Test.csproj", "{EDE93A6C-D79F-4515-B5F0-0D6F4B7040F0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MusicCast.Net.Client", "MusicCast.Net.Client\MusicCast.Net.Client.csproj", "{4F040A2B-B3BB-46ED-9A6F-86A903FFD3C1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -12,5 +18,17 @@ Global {7FE615F0-07A3-4A1D-8144-E22B96639F8B}.Debug|Any CPU.Build.0 = Debug|Any CPU {7FE615F0-07A3-4A1D-8144-E22B96639F8B}.Release|Any CPU.ActiveCfg = Release|Any CPU {7FE615F0-07A3-4A1D-8144-E22B96639F8B}.Release|Any CPU.Build.0 = Release|Any CPU + {8B016C28-56F7-46AA-8FEE-D42062FC0F7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8B016C28-56F7-46AA-8FEE-D42062FC0F7E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8B016C28-56F7-46AA-8FEE-D42062FC0F7E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8B016C28-56F7-46AA-8FEE-D42062FC0F7E}.Release|Any CPU.Build.0 = Release|Any CPU + {EDE93A6C-D79F-4515-B5F0-0D6F4B7040F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EDE93A6C-D79F-4515-B5F0-0D6F4B7040F0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EDE93A6C-D79F-4515-B5F0-0D6F4B7040F0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EDE93A6C-D79F-4515-B5F0-0D6F4B7040F0}.Release|Any CPU.Build.0 = Release|Any CPU + {4F040A2B-B3BB-46ED-9A6F-86A903FFD3C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4F040A2B-B3BB-46ED-9A6F-86A903FFD3C1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4F040A2B-B3BB-46ED-9A6F-86A903FFD3C1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4F040A2B-B3BB-46ED-9A6F-86A903FFD3C1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal