Add api client project
This commit is contained in:
79
MusicCast.Net.Api.Client/Models/Audio.cs
Normal file
79
MusicCast.Net.Api.Client/Models/Audio.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Audio : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The error property</summary>
|
||||
public int? Error { get; set; }
|
||||
/// <summary>The format property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Format { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Format { get; set; }
|
||||
#endif
|
||||
/// <summary>The fs property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Fs { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Fs { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Audio"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Audio()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Audio"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Audio CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Audio();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "error", n => { Error = n.GetIntValue(); } },
|
||||
{ "format", n => { Format = n.GetStringValue(); } },
|
||||
{ "fs", n => { Fs = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("error", Error);
|
||||
writer.WriteStringValue("format", Format);
|
||||
writer.WriteStringValue("fs", Fs);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
65
MusicCast.Net.Api.Client/Models/BaseResponse.cs
Normal file
65
MusicCast.Net.Api.Client/Models/BaseResponse.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class BaseResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? ResponseCode { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string ResponseCode { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public BaseResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.BaseResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.BaseResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "response_code", n => { ResponseCode = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
59
MusicCast.Net.Api.Client/Models/Ccs.cs
Normal file
59
MusicCast.Net.Api.Client/Models/Ccs.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Ccs : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The supported property</summary>
|
||||
public bool? Supported { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Ccs"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Ccs()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Ccs"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Ccs CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Ccs();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "supported", n => { Supported = n.GetBoolValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteBoolValue("supported", Supported);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
79
MusicCast.Net.Api.Client/Models/Common.cs
Normal file
79
MusicCast.Net.Api.Client/Models/Common.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Common : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The speaker_size property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Speaker_size>? SpeakerSize { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Speaker_size> SpeakerSize { get; set; }
|
||||
#endif
|
||||
/// <summary>The swfr_crossover_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<int?>? SwfrCrossoverList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<int?> SwfrCrossoverList { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Common"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Common()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Common"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Common CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Common();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "speaker_size", n => { SpeakerSize = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Speaker_size>(global::MusicCast.Net.Api.Client.Models.Speaker_size.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
{ "swfr_crossover_list", n => { SwfrCrossoverList = n.GetCollectionOfPrimitiveValues<int?>()?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Speaker_size>("speaker_size", SpeakerSize);
|
||||
writer.WriteCollectionOfPrimitiveValues<int?>("swfr_crossover_list", SwfrCrossoverList);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
65
MusicCast.Net.Api.Client/Models/Disklavier.cs
Normal file
65
MusicCast.Net.Api.Client/Models/Disklavier.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Disklavier : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The ip_address property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? IpAddress { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string IpAddress { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Disklavier"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Disklavier()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Disklavier"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Disklavier CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Disklavier();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "ip_address", n => { IpAddress = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("ip_address", IpAddress);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
83
MusicCast.Net.Api.Client/Models/Distribution.cs
Normal file
83
MusicCast.Net.Api.Client/Models/Distribution.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Distribution : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The client_max property</summary>
|
||||
public int? ClientMax { get; set; }
|
||||
/// <summary>The compatible_client property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<int?>? CompatibleClient { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<int?> CompatibleClient { get; set; }
|
||||
#endif
|
||||
/// <summary>The server_zone_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? ServerZoneList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> ServerZoneList { get; set; }
|
||||
#endif
|
||||
/// <summary>The version property</summary>
|
||||
public int? Version { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Distribution"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Distribution()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Distribution"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Distribution CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Distribution();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "client_max", n => { ClientMax = n.GetIntValue(); } },
|
||||
{ "compatible_client", n => { CompatibleClient = n.GetCollectionOfPrimitiveValues<int?>()?.AsList(); } },
|
||||
{ "server_zone_list", n => { ServerZoneList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "version", n => { Version = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("client_max", ClientMax);
|
||||
writer.WriteCollectionOfPrimitiveValues<int?>("compatible_client", CompatibleClient);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("server_zone_list", ServerZoneList);
|
||||
writer.WriteIntValue("version", Version);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/Front_l.cs
Normal file
69
MusicCast.Net.Api.Client/Models/Front_l.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Front_l : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The range_step property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step>? RangeStep { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step> RangeStep { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Front_l"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Front_l()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Front_l"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Front_l CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Front_l();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step>(global::MusicCast.Net.Api.Client.Models.Range_step.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step>("range_step", RangeStep);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/Front_r.cs
Normal file
69
MusicCast.Net.Api.Client/Models/Front_r.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Front_r : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The range_step property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step1>? RangeStep { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step1> RangeStep { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Front_r"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Front_r()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Front_r"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Front_r CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Front_r();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step1>(global::MusicCast.Net.Api.Client.Models.Range_step1.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step1>("range_step", RangeStep);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
151
MusicCast.Net.Api.Client/Models/GetDeviceInfoResponse.cs
Normal file
151
MusicCast.Net.Api.Client/Models/GetDeviceInfoResponse.cs
Normal file
@@ -0,0 +1,151 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetDeviceInfoResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The api_version property</summary>
|
||||
public double? ApiVersion { get; set; }
|
||||
/// <summary>The destination property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Destination { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Destination { get; set; }
|
||||
#endif
|
||||
/// <summary>The device_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? DeviceId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string DeviceId { get; set; }
|
||||
#endif
|
||||
/// <summary>The model_name property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? ModelName { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string ModelName { get; set; }
|
||||
#endif
|
||||
/// <summary>The netmodule_checksum property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? NetmoduleChecksum { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string NetmoduleChecksum { get; set; }
|
||||
#endif
|
||||
/// <summary>The netmodule_generation property</summary>
|
||||
public int? NetmoduleGeneration { get; set; }
|
||||
/// <summary>The netmodule_version property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? NetmoduleVersion { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string NetmoduleVersion { get; set; }
|
||||
#endif
|
||||
/// <summary>The operation_mode property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? OperationMode { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string OperationMode { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The system_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? SystemId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string SystemId { get; set; }
|
||||
#endif
|
||||
/// <summary>The system_version property</summary>
|
||||
public int? SystemVersion { get; set; }
|
||||
/// <summary>The update_error_code property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? UpdateErrorCode { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string UpdateErrorCode { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetDeviceInfoResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "api_version", n => { ApiVersion = n.GetDoubleValue(); } },
|
||||
{ "destination", n => { Destination = n.GetStringValue(); } },
|
||||
{ "device_id", n => { DeviceId = n.GetStringValue(); } },
|
||||
{ "model_name", n => { ModelName = n.GetStringValue(); } },
|
||||
{ "netmodule_checksum", n => { NetmoduleChecksum = n.GetStringValue(); } },
|
||||
{ "netmodule_generation", n => { NetmoduleGeneration = n.GetIntValue(); } },
|
||||
{ "netmodule_version", n => { NetmoduleVersion = n.GetStringValue(); } },
|
||||
{ "operation_mode", n => { OperationMode = n.GetStringValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "system_id", n => { SystemId = n.GetStringValue(); } },
|
||||
{ "system_version", n => { SystemVersion = n.GetIntValue(); } },
|
||||
{ "update_error_code", n => { UpdateErrorCode = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteDoubleValue("api_version", ApiVersion);
|
||||
writer.WriteStringValue("destination", Destination);
|
||||
writer.WriteStringValue("device_id", DeviceId);
|
||||
writer.WriteStringValue("model_name", ModelName);
|
||||
writer.WriteStringValue("netmodule_checksum", NetmoduleChecksum);
|
||||
writer.WriteIntValue("netmodule_generation", NetmoduleGeneration);
|
||||
writer.WriteStringValue("netmodule_version", NetmoduleVersion);
|
||||
writer.WriteStringValue("operation_mode", OperationMode);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteStringValue("system_id", SystemId);
|
||||
writer.WriteIntValue("system_version", SystemVersion);
|
||||
writer.WriteStringValue("update_error_code", UpdateErrorCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
103
MusicCast.Net.Api.Client/Models/GetDisklavierSettingsResponse.cs
Normal file
103
MusicCast.Net.Api.Client/Models/GetDisklavierSettingsResponse.cs
Normal file
@@ -0,0 +1,103 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetDisklavierSettingsResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The disklavier property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Disklavier? Disklavier { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Disklavier Disklavier { get; set; }
|
||||
#endif
|
||||
/// <summary>The enable property</summary>
|
||||
public bool? Enable { get; set; }
|
||||
/// <summary>The input property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Input { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Input { get; set; }
|
||||
#endif
|
||||
/// <summary>The mode property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Mode { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Mode { get; set; }
|
||||
#endif
|
||||
/// <summary>The pair property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Pair? Pair { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Pair Pair { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetDisklavierSettingsResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "disklavier", n => { Disklavier = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Disklavier>(global::MusicCast.Net.Api.Client.Models.Disklavier.CreateFromDiscriminatorValue); } },
|
||||
{ "enable", n => { Enable = n.GetBoolValue(); } },
|
||||
{ "input", n => { Input = n.GetStringValue(); } },
|
||||
{ "mode", n => { Mode = n.GetStringValue(); } },
|
||||
{ "pair", n => { Pair = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Pair>(global::MusicCast.Net.Api.Client.Models.Pair.CreateFromDiscriminatorValue); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Disklavier>("disklavier", Disklavier);
|
||||
writer.WriteBoolValue("enable", Enable);
|
||||
writer.WriteStringValue("input", Input);
|
||||
writer.WriteStringValue("mode", Mode);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Pair>("pair", Pair);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
109
MusicCast.Net.Api.Client/Models/GetDistributionInfoResponse.cs
Normal file
109
MusicCast.Net.Api.Client/Models/GetDistributionInfoResponse.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetDistributionInfoResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The client_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? ClientList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode ClientList { get; set; }
|
||||
#endif
|
||||
/// <summary>The group_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? GroupId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string GroupId { get; set; }
|
||||
#endif
|
||||
/// <summary>The group_name property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? GroupName { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string GroupName { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The role property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Role { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Role { get; set; }
|
||||
#endif
|
||||
/// <summary>The server_zone property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? ServerZone { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string ServerZone { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetDistributionInfoResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "client_list", n => { ClientList = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "group_id", n => { GroupId = n.GetStringValue(); } },
|
||||
{ "group_name", n => { GroupName = n.GetStringValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "role", n => { Role = n.GetStringValue(); } },
|
||||
{ "server_zone", n => { ServerZone = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteObjectValue<UntypedNode>("client_list", ClientList);
|
||||
writer.WriteStringValue("group_id", GroupId);
|
||||
writer.WriteStringValue("group_name", GroupName);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteStringValue("role", Role);
|
||||
writer.WriteStringValue("server_zone", ServerZone);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
119
MusicCast.Net.Api.Client/Models/GetFeaturesResponse.cs
Normal file
119
MusicCast.Net.Api.Client/Models/GetFeaturesResponse.cs
Normal file
@@ -0,0 +1,119 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetFeaturesResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The ccs property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Ccs? Ccs { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Ccs Ccs { get; set; }
|
||||
#endif
|
||||
/// <summary>The distribution property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Distribution? Distribution { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Distribution Distribution { get; set; }
|
||||
#endif
|
||||
/// <summary>The netusb property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Netusb? Netusb { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Netusb Netusb { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The system property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.System? System { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.System System { get; set; }
|
||||
#endif
|
||||
/// <summary>The tuner property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Tuner? Tuner { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Tuner Tuner { get; set; }
|
||||
#endif
|
||||
/// <summary>The zone property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Zone>? Zone { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Zone> Zone { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetFeaturesResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "ccs", n => { Ccs = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Ccs>(global::MusicCast.Net.Api.Client.Models.Ccs.CreateFromDiscriminatorValue); } },
|
||||
{ "distribution", n => { Distribution = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Distribution>(global::MusicCast.Net.Api.Client.Models.Distribution.CreateFromDiscriminatorValue); } },
|
||||
{ "netusb", n => { Netusb = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Netusb>(global::MusicCast.Net.Api.Client.Models.Netusb.CreateFromDiscriminatorValue); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "system", n => { System = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.System>(global::MusicCast.Net.Api.Client.Models.System.CreateFromDiscriminatorValue); } },
|
||||
{ "tuner", n => { Tuner = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Tuner>(global::MusicCast.Net.Api.Client.Models.Tuner.CreateFromDiscriminatorValue); } },
|
||||
{ "zone", n => { Zone = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone>(global::MusicCast.Net.Api.Client.Models.Zone.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Ccs>("ccs", Ccs);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Distribution>("distribution", Distribution);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Netusb>("netusb", Netusb);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.System>("system", System);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Tuner>("tuner", Tuner);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone>("zone", Zone);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
75
MusicCast.Net.Api.Client/Models/GetFuncStatusResponse.cs
Normal file
75
MusicCast.Net.Api.Client/Models/GetFuncStatusResponse.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetFuncStatusResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The auto_power_standby property</summary>
|
||||
public bool? AutoPowerStandby { get; set; }
|
||||
/// <summary>The headphone property</summary>
|
||||
public bool? Headphone { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The speaker_a property</summary>
|
||||
public bool? SpeakerA { get; set; }
|
||||
/// <summary>The speaker_b property</summary>
|
||||
public bool? SpeakerB { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetFuncStatusResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "auto_power_standby", n => { AutoPowerStandby = n.GetBoolValue(); } },
|
||||
{ "headphone", n => { Headphone = n.GetBoolValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "speaker_a", n => { SpeakerA = n.GetBoolValue(); } },
|
||||
{ "speaker_b", n => { SpeakerB = n.GetBoolValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteBoolValue("auto_power_standby", AutoPowerStandby);
|
||||
writer.WriteBoolValue("headphone", Headphone);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteBoolValue("speaker_a", SpeakerA);
|
||||
writer.WriteBoolValue("speaker_b", SpeakerB);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
105
MusicCast.Net.Api.Client/Models/GetListInfoResponse.cs
Normal file
105
MusicCast.Net.Api.Client/Models/GetListInfoResponse.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetListInfoResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The index property</summary>
|
||||
public int? Index { get; set; }
|
||||
/// <summary>The input property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Input { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Input { get; set; }
|
||||
#endif
|
||||
/// <summary>The list_info property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.List_info>? ListInfo { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.List_info> ListInfo { get; set; }
|
||||
#endif
|
||||
/// <summary>The max_line property</summary>
|
||||
public int? MaxLine { get; set; }
|
||||
/// <summary>The menu_layer property</summary>
|
||||
public int? MenuLayer { get; set; }
|
||||
/// <summary>The menu_name property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? MenuName { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string MenuName { get; set; }
|
||||
#endif
|
||||
/// <summary>The playing_index property</summary>
|
||||
public int? PlayingIndex { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetListInfoResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetListInfoResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetListInfoResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetListInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetListInfoResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "index", n => { Index = n.GetIntValue(); } },
|
||||
{ "input", n => { Input = n.GetStringValue(); } },
|
||||
{ "list_info", n => { ListInfo = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.List_info>(global::MusicCast.Net.Api.Client.Models.List_info.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
{ "max_line", n => { MaxLine = n.GetIntValue(); } },
|
||||
{ "menu_layer", n => { MenuLayer = n.GetIntValue(); } },
|
||||
{ "menu_name", n => { MenuName = n.GetStringValue(); } },
|
||||
{ "playing_index", n => { PlayingIndex = n.GetIntValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("index", Index);
|
||||
writer.WriteStringValue("input", Input);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.List_info>("list_info", ListInfo);
|
||||
writer.WriteIntValue("max_line", MaxLine);
|
||||
writer.WriteIntValue("menu_layer", MenuLayer);
|
||||
writer.WriteStringValue("menu_name", MenuName);
|
||||
writer.WriteIntValue("playing_index", PlayingIndex);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
89
MusicCast.Net.Api.Client/Models/GetLocationInfoResponse.cs
Normal file
89
MusicCast.Net.Api.Client/Models/GetLocationInfoResponse.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetLocationInfoResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The name property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Name { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Name { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The zone_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Zone_list? ZoneList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Zone_list ZoneList { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetLocationInfoResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "name", n => { Name = n.GetStringValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "zone_list", n => { ZoneList = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Zone_list>(global::MusicCast.Net.Api.Client.Models.Zone_list.CreateFromDiscriminatorValue); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteStringValue("name", Name);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Zone_list>("zone_list", ZoneList);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/GetMcPlaylistNameResponse.cs
Normal file
69
MusicCast.Net.Api.Client/Models/GetMcPlaylistNameResponse.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetMcPlaylistNameResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The name_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? NameList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> NameList { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetMcPlaylistNameResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "name_list", n => { NameList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("name_list", NameList);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
89
MusicCast.Net.Api.Client/Models/GetNameTextResponse.cs
Normal file
89
MusicCast.Net.Api.Client/Models/GetNameTextResponse.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetNameTextResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The input_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Input_list2>? InputList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Input_list2> InputList { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The sound_program_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? SoundProgramList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode SoundProgramList { get; set; }
|
||||
#endif
|
||||
/// <summary>The zone_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Zone_list2>? ZoneList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Zone_list2> ZoneList { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetNameTextResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetNameTextResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetNameTextResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetNameTextResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetNameTextResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "input_list", n => { InputList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list2>(global::MusicCast.Net.Api.Client.Models.Input_list2.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "sound_program_list", n => { SoundProgramList = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "zone_list", n => { ZoneList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list2>(global::MusicCast.Net.Api.Client.Models.Zone_list2.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list2>("input_list", InputList);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteObjectValue<UntypedNode>("sound_program_list", SoundProgramList);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list2>("zone_list", ZoneList);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/GetNetworkStandbyResponse.cs
Normal file
69
MusicCast.Net.Api.Client/Models/GetNetworkStandbyResponse.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetNetworkStandbyResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The network_standby property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? NetworkStandby { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string NetworkStandby { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetNetworkStandbyResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "network_standby", n => { NetworkStandby = n.GetStringValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("network_standby", NetworkStandby);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
199
MusicCast.Net.Api.Client/Models/GetPlayInfoResponse.cs
Normal file
199
MusicCast.Net.Api.Client/Models/GetPlayInfoResponse.cs
Normal file
@@ -0,0 +1,199 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetPlayInfoResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The album property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Album { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Album { get; set; }
|
||||
#endif
|
||||
/// <summary>The albumart_id property</summary>
|
||||
public int? AlbumartId { get; set; }
|
||||
/// <summary>The albumart_url property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? AlbumartUrl { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string AlbumartUrl { get; set; }
|
||||
#endif
|
||||
/// <summary>The artist property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Artist { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Artist { get; set; }
|
||||
#endif
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The auto_stopped property</summary>
|
||||
public bool? AutoStopped { get; set; }
|
||||
/// <summary>The input property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Input { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Input { get; set; }
|
||||
#endif
|
||||
/// <summary>The playback property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Playback { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Playback { get; set; }
|
||||
#endif
|
||||
/// <summary>The play_queue_type property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? PlayQueueType { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string PlayQueueType { get; set; }
|
||||
#endif
|
||||
/// <summary>The play_time property</summary>
|
||||
public int? PlayTime { get; set; }
|
||||
/// <summary>The repeat property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Repeat { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Repeat { get; set; }
|
||||
#endif
|
||||
/// <summary>The repeat_available property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? RepeatAvailable { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> RepeatAvailable { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The shuffle property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Shuffle { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Shuffle { get; set; }
|
||||
#endif
|
||||
/// <summary>The shuffle_available property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? ShuffleAvailable { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> ShuffleAvailable { get; set; }
|
||||
#endif
|
||||
/// <summary>The total_time property</summary>
|
||||
public int? TotalTime { get; set; }
|
||||
/// <summary>The track property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Track { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Track { get; set; }
|
||||
#endif
|
||||
/// <summary>The usb_devicetype property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? UsbDevicetype { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string UsbDevicetype { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetPlayInfoResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "album", n => { Album = n.GetStringValue(); } },
|
||||
{ "albumart_id", n => { AlbumartId = n.GetIntValue(); } },
|
||||
{ "albumart_url", n => { AlbumartUrl = n.GetStringValue(); } },
|
||||
{ "artist", n => { Artist = n.GetStringValue(); } },
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "auto_stopped", n => { AutoStopped = n.GetBoolValue(); } },
|
||||
{ "input", n => { Input = n.GetStringValue(); } },
|
||||
{ "play_queue_type", n => { PlayQueueType = n.GetStringValue(); } },
|
||||
{ "play_time", n => { PlayTime = n.GetIntValue(); } },
|
||||
{ "playback", n => { Playback = n.GetStringValue(); } },
|
||||
{ "repeat", n => { Repeat = n.GetStringValue(); } },
|
||||
{ "repeat_available", n => { RepeatAvailable = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "shuffle", n => { Shuffle = n.GetStringValue(); } },
|
||||
{ "shuffle_available", n => { ShuffleAvailable = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "total_time", n => { TotalTime = n.GetIntValue(); } },
|
||||
{ "track", n => { Track = n.GetStringValue(); } },
|
||||
{ "usb_devicetype", n => { UsbDevicetype = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("album", Album);
|
||||
writer.WriteIntValue("albumart_id", AlbumartId);
|
||||
writer.WriteStringValue("albumart_url", AlbumartUrl);
|
||||
writer.WriteStringValue("artist", Artist);
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteBoolValue("auto_stopped", AutoStopped);
|
||||
writer.WriteStringValue("input", Input);
|
||||
writer.WriteStringValue("playback", Playback);
|
||||
writer.WriteStringValue("play_queue_type", PlayQueueType);
|
||||
writer.WriteIntValue("play_time", PlayTime);
|
||||
writer.WriteStringValue("repeat", Repeat);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("repeat_available", RepeatAvailable);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteStringValue("shuffle", Shuffle);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("shuffle_available", ShuffleAvailable);
|
||||
writer.WriteIntValue("total_time", TotalTime);
|
||||
writer.WriteStringValue("track", Track);
|
||||
writer.WriteStringValue("usb_devicetype", UsbDevicetype);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
91
MusicCast.Net.Api.Client/Models/GetPlayQueueResponse.cs
Normal file
91
MusicCast.Net.Api.Client/Models/GetPlayQueueResponse.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetPlayQueueResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The index property</summary>
|
||||
public int? Index { get; set; }
|
||||
/// <summary>The max_line property</summary>
|
||||
public int? MaxLine { get; set; }
|
||||
/// <summary>The playing_index property</summary>
|
||||
public int? PlayingIndex { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The track_info property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Track_info>? TrackInfo { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Track_info> TrackInfo { get; set; }
|
||||
#endif
|
||||
/// <summary>The type property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Type { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Type { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetPlayQueueResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "index", n => { Index = n.GetIntValue(); } },
|
||||
{ "max_line", n => { MaxLine = n.GetIntValue(); } },
|
||||
{ "playing_index", n => { PlayingIndex = n.GetIntValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "track_info", n => { TrackInfo = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Track_info>(global::MusicCast.Net.Api.Client.Models.Track_info.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
{ "type", n => { Type = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("index", Index);
|
||||
writer.WriteIntValue("max_line", MaxLine);
|
||||
writer.WriteIntValue("playing_index", PlayingIndex);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Track_info>("track_info", TrackInfo);
|
||||
writer.WriteStringValue("type", Type);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/GetRecentInfoResponse.cs
Normal file
69
MusicCast.Net.Api.Client/Models/GetRecentInfoResponse.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetRecentInfoResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The recent_info property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Recent_info>? RecentInfo { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Recent_info> RecentInfo { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetRecentInfoResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "recent_info", n => { RecentInfo = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Recent_info>(global::MusicCast.Net.Api.Client.Models.Recent_info.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Recent_info>("recent_info", RecentInfo);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/GetSignalInfoResponse.cs
Normal file
69
MusicCast.Net.Api.Client/Models/GetSignalInfoResponse.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetSignalInfoResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The audio property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Audio? Audio { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Audio Audio { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetSignalInfoResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "audio", n => { Audio = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Audio>(global::MusicCast.Net.Api.Client.Models.Audio.CreateFromDiscriminatorValue); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Audio>("audio", Audio);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
133
MusicCast.Net.Api.Client/Models/GetStatusResponse.cs
Normal file
133
MusicCast.Net.Api.Client/Models/GetStatusResponse.cs
Normal file
@@ -0,0 +1,133 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetStatusResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The disable_flags property</summary>
|
||||
public int? DisableFlags { get; set; }
|
||||
/// <summary>The distribution_enable property</summary>
|
||||
public bool? DistributionEnable { get; set; }
|
||||
/// <summary>The input property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Input { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Input { get; set; }
|
||||
#endif
|
||||
/// <summary>The link_audio_delay property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? LinkAudioDelay { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string LinkAudioDelay { get; set; }
|
||||
#endif
|
||||
/// <summary>The link_audio_quality property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? LinkAudioQuality { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string LinkAudioQuality { get; set; }
|
||||
#endif
|
||||
/// <summary>The link_control property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? LinkControl { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string LinkControl { get; set; }
|
||||
#endif
|
||||
/// <summary>The max_volume property</summary>
|
||||
public int? MaxVolume { get; set; }
|
||||
/// <summary>The mute property</summary>
|
||||
public bool? Mute { get; set; }
|
||||
/// <summary>The power property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Power { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Power { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The sleep property</summary>
|
||||
public int? Sleep { get; set; }
|
||||
/// <summary>The volume property</summary>
|
||||
public int? Volume { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetStatusResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetStatusResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetStatusResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetStatusResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetStatusResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "disable_flags", n => { DisableFlags = n.GetIntValue(); } },
|
||||
{ "distribution_enable", n => { DistributionEnable = n.GetBoolValue(); } },
|
||||
{ "input", n => { Input = n.GetStringValue(); } },
|
||||
{ "link_audio_delay", n => { LinkAudioDelay = n.GetStringValue(); } },
|
||||
{ "link_audio_quality", n => { LinkAudioQuality = n.GetStringValue(); } },
|
||||
{ "link_control", n => { LinkControl = n.GetStringValue(); } },
|
||||
{ "max_volume", n => { MaxVolume = n.GetIntValue(); } },
|
||||
{ "mute", n => { Mute = n.GetBoolValue(); } },
|
||||
{ "power", n => { Power = n.GetStringValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "sleep", n => { Sleep = n.GetIntValue(); } },
|
||||
{ "volume", n => { Volume = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("disable_flags", DisableFlags);
|
||||
writer.WriteBoolValue("distribution_enable", DistributionEnable);
|
||||
writer.WriteStringValue("input", Input);
|
||||
writer.WriteStringValue("link_audio_delay", LinkAudioDelay);
|
||||
writer.WriteStringValue("link_audio_quality", LinkAudioQuality);
|
||||
writer.WriteStringValue("link_control", LinkControl);
|
||||
writer.WriteIntValue("max_volume", MaxVolume);
|
||||
writer.WriteBoolValue("mute", Mute);
|
||||
writer.WriteStringValue("power", Power);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteIntValue("sleep", Sleep);
|
||||
writer.WriteIntValue("volume", Volume);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetStreamingServiceSettingsResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The services property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Services>? Services { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Services> Services { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetStreamingServiceSettingsResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "services", n => { Services = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Services>(global::MusicCast.Net.Api.Client.Models.Services.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Services>("services", Services);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
79
MusicCast.Net.Api.Client/Models/GetTagResponse.cs
Normal file
79
MusicCast.Net.Api.Client/Models/GetTagResponse.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetTagResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The input_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Input_list3>? InputList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Input_list3> InputList { get; set; }
|
||||
#endif
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The zone_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Zone_list3>? ZoneList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Zone_list3> ZoneList { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetTagResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetTagResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetTagResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetTagResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetTagResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "input_list", n => { InputList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list3>(global::MusicCast.Net.Api.Client.Models.Input_list3.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "zone_list", n => { ZoneList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list3>(global::MusicCast.Net.Api.Client.Models.Zone_list3.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list3>("input_list", InputList);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Zone_list3>("zone_list", ZoneList);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
91
MusicCast.Net.Api.Client/Models/GetYpaoConfigResponse.cs
Normal file
91
MusicCast.Net.Api.Client/Models/GetYpaoConfigResponse.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class GetYpaoConfigResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The disable_flags property</summary>
|
||||
public int? DisableFlags { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>The ypao_setting property</summary>
|
||||
public bool? YpaoSetting { get; set; }
|
||||
/// <summary>The ypao_speaker_unit property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? YpaoSpeakerUnit { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string YpaoSpeakerUnit { get; set; }
|
||||
#endif
|
||||
/// <summary>The ypao_status property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? YpaoStatus { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string YpaoStatus { get; set; }
|
||||
#endif
|
||||
/// <summary>The ypao_volume property</summary>
|
||||
public bool? YpaoVolume { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public GetYpaoConfigResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "disable_flags", n => { DisableFlags = n.GetIntValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
{ "ypao_setting", n => { YpaoSetting = n.GetBoolValue(); } },
|
||||
{ "ypao_speaker_unit", n => { YpaoSpeakerUnit = n.GetStringValue(); } },
|
||||
{ "ypao_status", n => { YpaoStatus = n.GetStringValue(); } },
|
||||
{ "ypao_volume", n => { YpaoVolume = n.GetBoolValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("disable_flags", DisableFlags);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteBoolValue("ypao_setting", YpaoSetting);
|
||||
writer.WriteStringValue("ypao_speaker_unit", YpaoSpeakerUnit);
|
||||
writer.WriteStringValue("ypao_status", YpaoStatus);
|
||||
writer.WriteBoolValue("ypao_volume", YpaoVolume);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
87
MusicCast.Net.Api.Client/Models/Input_list.cs
Normal file
87
MusicCast.Net.Api.Client/Models/Input_list.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Input_list : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>The account_enable property</summary>
|
||||
public bool? AccountEnable { get; set; }
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The distribution_enable property</summary>
|
||||
public bool? DistributionEnable { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The play_info_type property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? PlayInfoType { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string PlayInfoType { get; set; }
|
||||
#endif
|
||||
/// <summary>The rename_enable property</summary>
|
||||
public bool? RenameEnable { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Input_list"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Input_list()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Input_list"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Input_list CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Input_list();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "account_enable", n => { AccountEnable = n.GetBoolValue(); } },
|
||||
{ "distribution_enable", n => { DistributionEnable = n.GetBoolValue(); } },
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "play_info_type", n => { PlayInfoType = n.GetStringValue(); } },
|
||||
{ "rename_enable", n => { RenameEnable = n.GetBoolValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteBoolValue("account_enable", AccountEnable);
|
||||
writer.WriteBoolValue("distribution_enable", DistributionEnable);
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteStringValue("play_info_type", PlayInfoType);
|
||||
writer.WriteBoolValue("rename_enable", RenameEnable);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
75
MusicCast.Net.Api.Client/Models/Input_list2.cs
Normal file
75
MusicCast.Net.Api.Client/Models/Input_list2.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Input_list2 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The text property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Text { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Text { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Input_list2"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Input_list2()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Input_list2"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Input_list2 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Input_list2();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "text", n => { Text = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteStringValue("text", Text);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/Input_list3.cs
Normal file
69
MusicCast.Net.Api.Client/Models/Input_list3.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Input_list3 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The tag property</summary>
|
||||
public int? Tag { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Input_list3"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Input_list3()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Input_list3"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Input_list3 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Input_list3();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "tag", n => { Tag = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteIntValue("tag", Tag);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
@@ -0,0 +1,63 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class IsNewFirmwareAvailableResponse : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The available property</summary>
|
||||
public bool? Available { get; set; }
|
||||
/// <summary>The response_code property</summary>
|
||||
public int? ResponseCode { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse"/> and sets the default values.
|
||||
/// </summary>
|
||||
public IsNewFirmwareAvailableResponse()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.IsNewFirmwareAvailableResponse();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "available", n => { Available = n.GetBoolValue(); } },
|
||||
{ "response_code", n => { ResponseCode = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteBoolValue("available", Available);
|
||||
writer.WriteIntValue("response_code", ResponseCode);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
99
MusicCast.Net.Api.Client/Models/List_info.cs
Normal file
99
MusicCast.Net.Api.Client/Models/List_info.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class List_info : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The logo property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Logo { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Logo { get; set; }
|
||||
#endif
|
||||
/// <summary>The subtexts property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? Subtexts { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode Subtexts { get; set; }
|
||||
#endif
|
||||
/// <summary>The text property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Text { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Text { get; set; }
|
||||
#endif
|
||||
/// <summary>The thumbnail property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Thumbnail { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Thumbnail { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.List_info"/> and sets the default values.
|
||||
/// </summary>
|
||||
public List_info()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.List_info"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.List_info CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.List_info();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "logo", n => { Logo = n.GetStringValue(); } },
|
||||
{ "subtexts", n => { Subtexts = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "text", n => { Text = n.GetStringValue(); } },
|
||||
{ "thumbnail", n => { Thumbnail = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteStringValue("logo", Logo);
|
||||
writer.WriteObjectValue<UntypedNode>("subtexts", Subtexts);
|
||||
writer.WriteStringValue("text", Text);
|
||||
writer.WriteStringValue("thumbnail", Thumbnail);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
63
MusicCast.Net.Api.Client/Models/Mc_playlist.cs
Normal file
63
MusicCast.Net.Api.Client/Models/Mc_playlist.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Mc_playlist : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The num property</summary>
|
||||
public int? Num { get; set; }
|
||||
/// <summary>The size property</summary>
|
||||
public int? Size { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Mc_playlist"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Mc_playlist()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Mc_playlist"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Mc_playlist CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Mc_playlist();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "num", n => { Num = n.GetIntValue(); } },
|
||||
{ "size", n => { Size = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("num", Num);
|
||||
writer.WriteIntValue("size", Size);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
135
MusicCast.Net.Api.Client/Models/Netusb.cs
Normal file
135
MusicCast.Net.Api.Client/Models/Netusb.cs
Normal file
@@ -0,0 +1,135 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Netusb : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The func_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? FuncList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> FuncList { get; set; }
|
||||
#endif
|
||||
/// <summary>The mc_playlist property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Mc_playlist? McPlaylist { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Mc_playlist McPlaylist { get; set; }
|
||||
#endif
|
||||
/// <summary>The net_radio_type property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? NetRadioType { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string NetRadioType { get; set; }
|
||||
#endif
|
||||
/// <summary>The pandora property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Pandora? Pandora { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Pandora Pandora { get; set; }
|
||||
#endif
|
||||
/// <summary>The play_queue property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Play_queue? PlayQueue { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Play_queue PlayQueue { get; set; }
|
||||
#endif
|
||||
/// <summary>The preset property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Preset1? Preset { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Preset1 Preset { get; set; }
|
||||
#endif
|
||||
/// <summary>The recent_info property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Recent_info2? RecentInfo { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Recent_info2 RecentInfo { get; set; }
|
||||
#endif
|
||||
/// <summary>The siriusxm property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Siriusxm? Siriusxm { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Siriusxm Siriusxm { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Netusb"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Netusb()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Netusb"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Netusb CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Netusb();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "mc_playlist", n => { McPlaylist = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Mc_playlist>(global::MusicCast.Net.Api.Client.Models.Mc_playlist.CreateFromDiscriminatorValue); } },
|
||||
{ "net_radio_type", n => { NetRadioType = n.GetStringValue(); } },
|
||||
{ "pandora", n => { Pandora = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Pandora>(global::MusicCast.Net.Api.Client.Models.Pandora.CreateFromDiscriminatorValue); } },
|
||||
{ "play_queue", n => { PlayQueue = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Play_queue>(global::MusicCast.Net.Api.Client.Models.Play_queue.CreateFromDiscriminatorValue); } },
|
||||
{ "preset", n => { Preset = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Preset1>(global::MusicCast.Net.Api.Client.Models.Preset1.CreateFromDiscriminatorValue); } },
|
||||
{ "recent_info", n => { RecentInfo = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Recent_info2>(global::MusicCast.Net.Api.Client.Models.Recent_info2.CreateFromDiscriminatorValue); } },
|
||||
{ "siriusxm", n => { Siriusxm = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Siriusxm>(global::MusicCast.Net.Api.Client.Models.Siriusxm.CreateFromDiscriminatorValue); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Mc_playlist>("mc_playlist", McPlaylist);
|
||||
writer.WriteStringValue("net_radio_type", NetRadioType);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Pandora>("pandora", Pandora);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Play_queue>("play_queue", PlayQueue);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Preset1>("preset", Preset);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Recent_info2>("recent_info", RecentInfo);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Siriusxm>("siriusxm", Siriusxm);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
65
MusicCast.Net.Api.Client/Models/Pair.cs
Normal file
65
MusicCast.Net.Api.Client/Models/Pair.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Pair : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The mac_address property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? MacAddress { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string MacAddress { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Pair"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Pair()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Pair"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Pair CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Pair();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "mac_address", n => { MacAddress = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("mac_address", MacAddress);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
65
MusicCast.Net.Api.Client/Models/Pandora.cs
Normal file
65
MusicCast.Net.Api.Client/Models/Pandora.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Pandora : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The sort_option_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? SortOptionList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> SortOptionList { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Pandora"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Pandora()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Pandora"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Pandora CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Pandora();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "sort_option_list", n => { SortOptionList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("sort_option_list", SortOptionList);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
59
MusicCast.Net.Api.Client/Models/Play_queue.cs
Normal file
59
MusicCast.Net.Api.Client/Models/Play_queue.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Play_queue : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The size property</summary>
|
||||
public int? Size { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Play_queue"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Play_queue()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Play_queue"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Play_queue CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Play_queue();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "size", n => { Size = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("size", Size);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/Preset.cs
Normal file
69
MusicCast.Net.Api.Client/Models/Preset.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Preset : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The num property</summary>
|
||||
public int? Num { get; set; }
|
||||
/// <summary>The type property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Type { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Type { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Preset"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Preset()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Preset"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Preset CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Preset();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "num", n => { Num = n.GetIntValue(); } },
|
||||
{ "type", n => { Type = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("num", Num);
|
||||
writer.WriteStringValue("type", Type);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
59
MusicCast.Net.Api.Client/Models/Preset1.cs
Normal file
59
MusicCast.Net.Api.Client/Models/Preset1.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Preset1 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The num property</summary>
|
||||
public int? Num { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Preset1"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Preset1()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Preset1"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Preset1 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Preset1();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "num", n => { Num = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("num", Num);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
77
MusicCast.Net.Api.Client/Models/Range_step.cs
Normal file
77
MusicCast.Net.Api.Client/Models/Range_step.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Range_step : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The max property</summary>
|
||||
public int? Max { get; set; }
|
||||
/// <summary>The min property</summary>
|
||||
public int? Min { get; set; }
|
||||
/// <summary>The step property</summary>
|
||||
public int? Step { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Range_step()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Range_step"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Range_step CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Range_step();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "max", n => { Max = n.GetIntValue(); } },
|
||||
{ "min", n => { Min = n.GetIntValue(); } },
|
||||
{ "step", n => { Step = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteIntValue("max", Max);
|
||||
writer.WriteIntValue("min", Min);
|
||||
writer.WriteIntValue("step", Step);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
77
MusicCast.Net.Api.Client/Models/Range_step1.cs
Normal file
77
MusicCast.Net.Api.Client/Models/Range_step1.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Range_step1 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The max property</summary>
|
||||
public int? Max { get; set; }
|
||||
/// <summary>The min property</summary>
|
||||
public int? Min { get; set; }
|
||||
/// <summary>The step property</summary>
|
||||
public int? Step { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step1"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Range_step1()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Range_step1"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Range_step1 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Range_step1();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "max", n => { Max = n.GetIntValue(); } },
|
||||
{ "min", n => { Min = n.GetIntValue(); } },
|
||||
{ "step", n => { Step = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteIntValue("max", Max);
|
||||
writer.WriteIntValue("min", Min);
|
||||
writer.WriteIntValue("step", Step);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
77
MusicCast.Net.Api.Client/Models/Range_step2.cs
Normal file
77
MusicCast.Net.Api.Client/Models/Range_step2.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Range_step2 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The max property</summary>
|
||||
public int? Max { get; set; }
|
||||
/// <summary>The min property</summary>
|
||||
public int? Min { get; set; }
|
||||
/// <summary>The step property</summary>
|
||||
public int? Step { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step2"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Range_step2()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Range_step2"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Range_step2 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Range_step2();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "max", n => { Max = n.GetIntValue(); } },
|
||||
{ "min", n => { Min = n.GetIntValue(); } },
|
||||
{ "step", n => { Step = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteIntValue("max", Max);
|
||||
writer.WriteIntValue("min", Min);
|
||||
writer.WriteIntValue("step", Step);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
77
MusicCast.Net.Api.Client/Models/Range_step3.cs
Normal file
77
MusicCast.Net.Api.Client/Models/Range_step3.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Range_step3 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The max property</summary>
|
||||
public int? Max { get; set; }
|
||||
/// <summary>The min property</summary>
|
||||
public int? Min { get; set; }
|
||||
/// <summary>The step property</summary>
|
||||
public int? Step { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step3"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Range_step3()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Range_step3"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Range_step3 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Range_step3();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "max", n => { Max = n.GetIntValue(); } },
|
||||
{ "min", n => { Min = n.GetIntValue(); } },
|
||||
{ "step", n => { Step = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteIntValue("max", Max);
|
||||
writer.WriteIntValue("min", Min);
|
||||
writer.WriteIntValue("step", Step);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
77
MusicCast.Net.Api.Client/Models/Range_step4.cs
Normal file
77
MusicCast.Net.Api.Client/Models/Range_step4.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Range_step4 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The max property</summary>
|
||||
public int? Max { get; set; }
|
||||
/// <summary>The min property</summary>
|
||||
public int? Min { get; set; }
|
||||
/// <summary>The step property</summary>
|
||||
public int? Step { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Range_step4"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Range_step4()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Range_step4"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Range_step4 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Range_step4();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "max", n => { Max = n.GetIntValue(); } },
|
||||
{ "min", n => { Min = n.GetIntValue(); } },
|
||||
{ "step", n => { Step = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteIntValue("max", Max);
|
||||
writer.WriteIntValue("min", Min);
|
||||
writer.WriteIntValue("step", Step);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
93
MusicCast.Net.Api.Client/Models/Recent_info.cs
Normal file
93
MusicCast.Net.Api.Client/Models/Recent_info.cs
Normal file
@@ -0,0 +1,93 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Recent_info : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The albumart_url property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? AlbumartUrl { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string AlbumartUrl { get; set; }
|
||||
#endif
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The input property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Input { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Input { get; set; }
|
||||
#endif
|
||||
/// <summary>The play_count property</summary>
|
||||
public int? PlayCount { get; set; }
|
||||
/// <summary>The text property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Text { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Text { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Recent_info"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Recent_info()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Recent_info"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Recent_info CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Recent_info();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "albumart_url", n => { AlbumartUrl = n.GetStringValue(); } },
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "input", n => { Input = n.GetStringValue(); } },
|
||||
{ "play_count", n => { PlayCount = n.GetIntValue(); } },
|
||||
{ "text", n => { Text = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("albumart_url", AlbumartUrl);
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteStringValue("input", Input);
|
||||
writer.WriteIntValue("play_count", PlayCount);
|
||||
writer.WriteStringValue("text", Text);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
59
MusicCast.Net.Api.Client/Models/Recent_info2.cs
Normal file
59
MusicCast.Net.Api.Client/Models/Recent_info2.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Recent_info2 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The num property</summary>
|
||||
public int? Num { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Recent_info2"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Recent_info2()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Recent_info2"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Recent_info2 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Recent_info2();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "num", n => { Num = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("num", Num);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
73
MusicCast.Net.Api.Client/Models/Services.cs
Normal file
73
MusicCast.Net.Api.Client/Models/Services.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Services : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The confirmed property</summary>
|
||||
public bool? Confirmed { get; set; }
|
||||
/// <summary>The input property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Input { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Input { get; set; }
|
||||
#endif
|
||||
/// <summary>The use_service property</summary>
|
||||
public bool? UseService { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Services"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Services()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Services"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Services CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Services();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "confirmed", n => { Confirmed = n.GetBoolValue(); } },
|
||||
{ "input", n => { Input = n.GetStringValue(); } },
|
||||
{ "use_service", n => { UseService = n.GetBoolValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteBoolValue("confirmed", Confirmed);
|
||||
writer.WriteStringValue("input", Input);
|
||||
writer.WriteBoolValue("use_service", UseService);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
65
MusicCast.Net.Api.Client/Models/Siriusxm.cs
Normal file
65
MusicCast.Net.Api.Client/Models/Siriusxm.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Siriusxm : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The api_type property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? ApiType { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string ApiType { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Siriusxm"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Siriusxm()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Siriusxm"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Siriusxm CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Siriusxm();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "api_type", n => { ApiType = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("api_type", ApiType);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
105
MusicCast.Net.Api.Client/Models/Speaker_settings.cs
Normal file
105
MusicCast.Net.Api.Client/Models/Speaker_settings.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Speaker_settings : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The common property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Common? Common { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Common Common { get; set; }
|
||||
#endif
|
||||
/// <summary>The front_l property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Front_l? FrontL { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Front_l FrontL { get; set; }
|
||||
#endif
|
||||
/// <summary>The front_r property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Front_r? FrontR { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Front_r FrontR { get; set; }
|
||||
#endif
|
||||
/// <summary>The swfr property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Swfr? Swfr { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Swfr Swfr { get; set; }
|
||||
#endif
|
||||
/// <summary>The type property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Type { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Type { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Speaker_settings"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Speaker_settings()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Speaker_settings"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Speaker_settings CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Speaker_settings();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "common", n => { Common = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Common>(global::MusicCast.Net.Api.Client.Models.Common.CreateFromDiscriminatorValue); } },
|
||||
{ "front_l", n => { FrontL = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Front_l>(global::MusicCast.Net.Api.Client.Models.Front_l.CreateFromDiscriminatorValue); } },
|
||||
{ "front_r", n => { FrontR = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Front_r>(global::MusicCast.Net.Api.Client.Models.Front_r.CreateFromDiscriminatorValue); } },
|
||||
{ "swfr", n => { Swfr = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Swfr>(global::MusicCast.Net.Api.Client.Models.Swfr.CreateFromDiscriminatorValue); } },
|
||||
{ "type", n => { Type = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Common>("common", Common);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Front_l>("front_l", FrontL);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Front_r>("front_r", FrontR);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Swfr>("swfr", Swfr);
|
||||
writer.WriteStringValue("type", Type);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
75
MusicCast.Net.Api.Client/Models/Speaker_size.cs
Normal file
75
MusicCast.Net.Api.Client/Models/Speaker_size.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Speaker_size : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The size_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? SizeList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> SizeList { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Speaker_size"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Speaker_size()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Speaker_size"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Speaker_size CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Speaker_size();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "size_list", n => { SizeList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("size_list", SizeList);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/Swfr.cs
Normal file
69
MusicCast.Net.Api.Client/Models/Swfr.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Swfr : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The range_step property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step2>? RangeStep { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step2> RangeStep { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Swfr"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Swfr()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Swfr"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Swfr CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Swfr();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step2>(global::MusicCast.Net.Api.Client.Models.Range_step2.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step2>("range_step", RangeStep);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
99
MusicCast.Net.Api.Client/Models/System.cs
Normal file
99
MusicCast.Net.Api.Client/Models/System.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class System : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The func_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? FuncList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> FuncList { get; set; }
|
||||
#endif
|
||||
/// <summary>The input_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Input_list>? InputList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Input_list> InputList { get; set; }
|
||||
#endif
|
||||
/// <summary>The speaker_settings property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Speaker_settings? SpeakerSettings { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Speaker_settings SpeakerSettings { get; set; }
|
||||
#endif
|
||||
/// <summary>The ypao_speaker_unit_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? YpaoSpeakerUnitList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> YpaoSpeakerUnitList { get; set; }
|
||||
#endif
|
||||
/// <summary>The zone_num property</summary>
|
||||
public int? ZoneNum { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.System"/> and sets the default values.
|
||||
/// </summary>
|
||||
public System()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.System"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.System CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.System();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "input_list", n => { InputList = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list>(global::MusicCast.Net.Api.Client.Models.Input_list.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
{ "speaker_settings", n => { SpeakerSettings = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Speaker_settings>(global::MusicCast.Net.Api.Client.Models.Speaker_settings.CreateFromDiscriminatorValue); } },
|
||||
{ "ypao_speaker_unit_list", n => { YpaoSpeakerUnitList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "zone_num", n => { ZoneNum = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Input_list>("input_list", InputList);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Speaker_settings>("speaker_settings", SpeakerSettings);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("ypao_speaker_unit_list", YpaoSpeakerUnitList);
|
||||
writer.WriteIntValue("zone_num", ZoneNum);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
89
MusicCast.Net.Api.Client/Models/Track_info.cs
Normal file
89
MusicCast.Net.Api.Client/Models/Track_info.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Track_info : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The attribute property</summary>
|
||||
public int? Attribute { get; set; }
|
||||
/// <summary>The input property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Input { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Input { get; set; }
|
||||
#endif
|
||||
/// <summary>The text property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Text { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Text { get; set; }
|
||||
#endif
|
||||
/// <summary>The thumbnail property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Thumbnail { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Thumbnail { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Track_info"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Track_info()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Track_info"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Track_info CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Track_info();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "attribute", n => { Attribute = n.GetIntValue(); } },
|
||||
{ "input", n => { Input = n.GetStringValue(); } },
|
||||
{ "text", n => { Text = n.GetStringValue(); } },
|
||||
{ "thumbnail", n => { Thumbnail = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteIntValue("attribute", Attribute);
|
||||
writer.WriteStringValue("input", Input);
|
||||
writer.WriteStringValue("text", Text);
|
||||
writer.WriteStringValue("thumbnail", Thumbnail);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
85
MusicCast.Net.Api.Client/Models/Tuner.cs
Normal file
85
MusicCast.Net.Api.Client/Models/Tuner.cs
Normal file
@@ -0,0 +1,85 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Tuner : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The func_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? FuncList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> FuncList { get; set; }
|
||||
#endif
|
||||
/// <summary>The preset property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public global::MusicCast.Net.Api.Client.Models.Preset? Preset { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public global::MusicCast.Net.Api.Client.Models.Preset Preset { get; set; }
|
||||
#endif
|
||||
/// <summary>The range_step property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step4>? RangeStep { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step4> RangeStep { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Tuner"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Tuner()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Tuner"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Tuner CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Tuner();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "preset", n => { Preset = n.GetObjectValue<global::MusicCast.Net.Api.Client.Models.Preset>(global::MusicCast.Net.Api.Client.Models.Preset.CreateFromDiscriminatorValue); } },
|
||||
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step4>(global::MusicCast.Net.Api.Client.Models.Range_step4.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
|
||||
writer.WriteObjectValue<global::MusicCast.Net.Api.Client.Models.Preset>("preset", Preset);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step4>("range_step", RangeStep);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
125
MusicCast.Net.Api.Client/Models/Zone.cs
Normal file
125
MusicCast.Net.Api.Client/Models/Zone.cs
Normal file
@@ -0,0 +1,125 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Zone : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The func_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? FuncList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> FuncList { get; set; }
|
||||
#endif
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The input_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? InputList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> InputList { get; set; }
|
||||
#endif
|
||||
/// <summary>The link_audio_delay_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? LinkAudioDelayList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> LinkAudioDelayList { get; set; }
|
||||
#endif
|
||||
/// <summary>The link_audio_quality_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? LinkAudioQualityList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> LinkAudioQualityList { get; set; }
|
||||
#endif
|
||||
/// <summary>The link_control_list property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<string>? LinkControlList { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<string> LinkControlList { get; set; }
|
||||
#endif
|
||||
/// <summary>The range_step property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step3>? RangeStep { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public List<global::MusicCast.Net.Api.Client.Models.Range_step3> RangeStep { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Zone()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Zone"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Zone CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Zone();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "func_list", n => { FuncList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "input_list", n => { InputList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "link_audio_delay_list", n => { LinkAudioDelayList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "link_audio_quality_list", n => { LinkAudioQualityList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "link_control_list", n => { LinkControlList = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
|
||||
{ "range_step", n => { RangeStep = n.GetCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step3>(global::MusicCast.Net.Api.Client.Models.Range_step3.CreateFromDiscriminatorValue)?.AsList(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("func_list", FuncList);
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("input_list", InputList);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("link_audio_delay_list", LinkAudioDelayList);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("link_audio_quality_list", LinkAudioQualityList);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("link_control_list", LinkControlList);
|
||||
writer.WriteCollectionOfObjectValues<global::MusicCast.Net.Api.Client.Models.Range_step3>("range_step", RangeStep);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
59
MusicCast.Net.Api.Client/Models/Zone_list.cs
Normal file
59
MusicCast.Net.Api.Client/Models/Zone_list.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Zone_list : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The main property</summary>
|
||||
public bool? Main { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Zone_list()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Zone_list CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Zone_list();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "main", n => { Main = n.GetBoolValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteBoolValue("main", Main);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
75
MusicCast.Net.Api.Client/Models/Zone_list2.cs
Normal file
75
MusicCast.Net.Api.Client/Models/Zone_list2.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Zone_list2 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The text property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Text { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Text { get; set; }
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list2"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Zone_list2()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list2"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Zone_list2 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Zone_list2();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "text", n => { Text = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteStringValue("text", Text);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
69
MusicCast.Net.Api.Client/Models/Zone_list3.cs
Normal file
69
MusicCast.Net.Api.Client/Models/Zone_list3.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System;
|
||||
namespace MusicCast.Net.Api.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Zone_list3 : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
{
|
||||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
|
||||
public IDictionary<string, object> AdditionalData { get; set; }
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public string? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public string Id { get; set; }
|
||||
#endif
|
||||
/// <summary>The tag property</summary>
|
||||
public int? Tag { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list3"/> and sets the default values.
|
||||
/// </summary>
|
||||
public Zone_list3()
|
||||
{
|
||||
AdditionalData = new Dictionary<string, object>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates a new instance of the appropriate class based on discriminator value
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.Zone_list3"/></returns>
|
||||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
||||
public static global::MusicCast.Net.Api.Client.Models.Zone_list3 CreateFromDiscriminatorValue(IParseNode parseNode)
|
||||
{
|
||||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
|
||||
return new global::MusicCast.Net.Api.Client.Models.Zone_list3();
|
||||
}
|
||||
/// <summary>
|
||||
/// The deserialization information for the current model
|
||||
/// </summary>
|
||||
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
|
||||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetStringValue(); } },
|
||||
{ "tag", n => { Tag = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
/// Serializes information the current object
|
||||
/// </summary>
|
||||
/// <param name="writer">Serialization writer to use to serialize this model</param>
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
_ = writer ?? throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("id", Id);
|
||||
writer.WriteIntValue("tag", Tag);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
13
MusicCast.Net.Api.Client/MusicCast.Net.Api.Client.csproj
Normal file
13
MusicCast.Net.Api.Client/MusicCast.Net.Api.Client.csproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Kiota.Bundle" Version="1.17.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
2436
MusicCast.Net.Api.Client/MusicCast.Net.Api.Server.json
Normal file
2436
MusicCast.Net.Api.Client/MusicCast.Net.Api.Server.json
Normal file
File diff suppressed because it is too large
Load Diff
43
MusicCast.Net.Api.Client/MusicCastApiClient.cs
Normal file
43
MusicCast.Net.Api.Client/MusicCastApiClient.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point of the SDK, exposes the configuration and the fluent API.
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class MusicCastApiClient : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>The YamahaExtendedControl property</summary>
|
||||
public global::MusicCast.Net.Api.Client.YamahaExtendedControl.YamahaExtendedControlRequestBuilder YamahaExtendedControl
|
||||
{
|
||||
get => new global::MusicCast.Net.Api.Client.YamahaExtendedControl.YamahaExtendedControlRequestBuilder(PathParameters, RequestAdapter);
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.MusicCastApiClient"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public MusicCastApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary<string, object>())
|
||||
{
|
||||
ApiClientBuilder.RegisterDefaultSerializer<JsonSerializationWriterFactory>();
|
||||
ApiClientBuilder.RegisterDefaultSerializer<TextSerializationWriterFactory>();
|
||||
ApiClientBuilder.RegisterDefaultSerializer<FormSerializationWriterFactory>();
|
||||
ApiClientBuilder.RegisterDefaultSerializer<MultipartSerializationWriterFactory>();
|
||||
ApiClientBuilder.RegisterDefaultDeserializer<JsonParseNodeFactory>();
|
||||
ApiClientBuilder.RegisterDefaultDeserializer<TextParseNodeFactory>();
|
||||
ApiClientBuilder.RegisterDefaultDeserializer<FormParseNodeFactory>();
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
@@ -0,0 +1,41 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\dist
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class DistRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>The getDistributionInfo property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.DistRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public DistRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.DistRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public DistRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist", rawUrl)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\dist\getDistributionInfo
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetDistributionInfoRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo.GetDistributionInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetDistributionInfoRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist/getDistributionInfo", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo.GetDistributionInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetDistributionInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/dist/getDistributionInfo", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetDistributionInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Dist.GetDistributionInfo.GetDistributionInfoRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\getSignalInfo
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetSignalInfoRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo.GetSignalInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetSignalInfoRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getSignalInfo", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo.GetSignalInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetSignalInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getSignalInfo", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetSignalInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetSignalInfo.GetSignalInfoRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\getStatus
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetStatusRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus.GetStatusRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetStatusRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getStatus", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus.GetStatusRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/getStatus", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetStatusResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetStatusResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetStatusResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetStatusResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetStatusResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.GetStatus.GetStatusRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,77 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class MainRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>The getSignalInfo property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The getStatus property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The prepareInputChange property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The setInput property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The setPower property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The setSleep property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The setVolume property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.MainRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public MainRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.MainRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public MainRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main", rawUrl)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
@@ -0,0 +1,93 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\prepareInputChange
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class PrepareInputChangeRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public PrepareInputChangeRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/prepareInputChange{?input*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public PrepareInputChangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/prepareInputChange{?input*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder.PrepareInputChangeRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder.PrepareInputChangeRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder.PrepareInputChangeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder.PrepareInputChangeRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.PrepareInputChange.PrepareInputChangeRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,93 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setInput
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class SetInputRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetInputRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setInput{?input*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetInputRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setInput{?input*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder.SetInputRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder.SetInputRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder.SetInputRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder.SetInputRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetInput.SetInputRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,20 @@
|
||||
// <auto-generated/>
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setPower
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class SetPowerRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetPowerRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setPower{?power*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetPowerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setPower{?power*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder.SetPowerRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder.SetPowerRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder.SetPowerRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder.SetPowerRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetPower.SetPowerRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,93 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setSleep
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class SetSleepRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetSleepRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setSleep{?sleep*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetSleepRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setSleep{?sleep*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Shutdown after the specified interval in minutes
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder.SetSleepRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder.SetSleepRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <summary>
|
||||
/// Shutdown after the specified interval in minutes
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder.SetSleepRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder.SetSleepRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetSleep.SetSleepRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// Shutdown after the specified interval in minutes
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class SetSleepRequestBuilderGetQueryParameters
|
||||
{
|
||||
[QueryParameter("sleep")]
|
||||
public int? Sleep { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
@@ -0,0 +1,86 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\main\setVolume
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class SetVolumeRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetVolumeRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setVolume{?volume*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetVolumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/main/setVolume{?volume*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder.SetVolumeRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder.SetVolumeRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder.SetVolumeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder.SetVolumeRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Main.SetVolume.SetVolumeRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,86 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\copyPlayQueue
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class CopyPlayQueueRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public CopyPlayQueueRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/copyPlayQueue{?index*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public CopyPlayQueueRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/copyPlayQueue{?index*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder.CopyPlayQueueRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder.CopyPlayQueueRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder.CopyPlayQueueRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder.CopyPlayQueueRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.CopyPlayQueue.CopyPlayQueueRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,113 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getListInfo
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetListInfoRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetListInfoRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getListInfo{?input*,lang*,list_id*,size*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetListInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getListInfo{?input*,lang*,list_id*,size*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetListInfoResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetListInfoResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder.GetListInfoRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetListInfoResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder.GetListInfoRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetListInfoResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetListInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder.GetListInfoRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder.GetListInfoRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetListInfo.GetListInfoRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getMcPlaylistName
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetMcPlaylistNameRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName.GetMcPlaylistNameRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetMcPlaylistNameRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getMcPlaylistName", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName.GetMcPlaylistNameRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetMcPlaylistNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getMcPlaylistName", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetMcPlaylistNameResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetMcPlaylistName.GetMcPlaylistNameRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getPlayInfo
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetPlayInfoRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo.GetPlayInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetPlayInfoRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayInfo", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo.GetPlayInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetPlayInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayInfo", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetPlayInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayInfo.GetPlayInfoRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,86 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getPlayQueue
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetPlayQueueRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetPlayQueueRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayQueue{?index*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetPlayQueueRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getPlayQueue{?index*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder.GetPlayQueueRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder.GetPlayQueueRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetPlayQueueResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder.GetPlayQueueRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder.GetPlayQueueRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetPlayQueue.GetPlayQueueRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getRecentInfo
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetRecentInfoRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo.GetRecentInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetRecentInfoRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getRecentInfo", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo.GetRecentInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetRecentInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getRecentInfo", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetRecentInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetRecentInfo.GetRecentInfoRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\getStreamingServiceSettings
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetStreamingServiceSettingsRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings.GetStreamingServiceSettingsRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetStreamingServiceSettingsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getStreamingServiceSettings", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings.GetStreamingServiceSettingsRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetStreamingServiceSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/getStreamingServiceSettings", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetStreamingServiceSettingsResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.GetStreamingServiceSettings.GetStreamingServiceSettingsRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,24 @@
|
||||
// <auto-generated/>
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\manageList
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class ManageListRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ManageListRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/manageList{?index*,list_id*,timeout*,type*,zone*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ManageListRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/manageList{?index*,list_id*,timeout*,type*,zone*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder.ManageListRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder.ManageListRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder.ManageListRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder.ManageListRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManageList.ManageListRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,20 @@
|
||||
// <auto-generated/>
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\managePlayQueue
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class ManagePlayQueueRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ManagePlayQueueRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/managePlayQueue{?index*,type*,zone*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ManagePlayQueueRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/managePlayQueue{?index*,type*,zone*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder.ManagePlayQueueRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder.ManagePlayQueueRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder.ManagePlayQueueRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder.ManagePlayQueueRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ManagePlayQueue.ManagePlayQueueRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,88 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\movePlayQueueItem
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class MovePlayQueueItemRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public MovePlayQueueItemRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/movePlayQueueItem{?from*,to*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public MovePlayQueueItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/movePlayQueueItem{?from*,to*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder.MovePlayQueueItemRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder.MovePlayQueueItemRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder.MovePlayQueueItemRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder.MovePlayQueueItemRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.MovePlayQueueItem.MovePlayQueueItemRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,125 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class NetusbRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>The copyPlayQueue property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The getListInfo property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The getMcPlaylistName property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The getPlayInfo property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The getPlayQueue property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The getRecentInfo property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The getStreamingServiceSettings property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The manageList property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The managePlayQueue property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The movePlayQueueItem property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The recallRecentItem property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The setListControl property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The setPlayback property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The toggleRepeat property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>The toggleShuffle property</summary>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.NetusbRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public NetusbRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.NetusbRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public NetusbRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb", rawUrl)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
@@ -0,0 +1,95 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\recallRecentItem
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class RecallRecentItemRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public RecallRecentItemRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/recallRecentItem{?num*,zone*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public RecallRecentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/recallRecentItem{?num*,zone*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder.RecallRecentItemRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder.RecallRecentItemRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder.RecallRecentItemRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder.RecallRecentItemRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.RecallRecentItem.RecallRecentItemRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,24 @@
|
||||
// <auto-generated/>
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\setListControl
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class SetListControlRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetListControlRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setListControl{?index*,type*,zone*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetListControlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setListControl{?index*,type*,zone*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder.SetListControlRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder.SetListControlRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder.SetListControlRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder.SetListControlRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetListControl.SetListControlRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,28 @@
|
||||
// <auto-generated/>
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\setPlayback
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class SetPlaybackRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetPlaybackRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setPlayback{?playback*}", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public SetPlaybackRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/setPlayback{?playback*}", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder.SetPlaybackRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder.SetPlaybackRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder.SetPlaybackRequestBuilderGetQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder.SetPlaybackRequestBuilderGetQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.SetPlayback.SetPlaybackRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\toggleRepeat
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class ToggleRepeatRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat.ToggleRepeatRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ToggleRepeatRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleRepeat", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat.ToggleRepeatRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ToggleRepeatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleRepeat", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleRepeat.ToggleRepeatRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\netusb\toggleShuffle
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class ToggleShuffleRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle.ToggleShuffleRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ToggleShuffleRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleShuffle", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle.ToggleShuffleRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public ToggleShuffleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/netusb/toggleShuffle", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.BaseResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.BaseResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.BaseResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.BaseResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.Netusb.ToggleShuffle.ToggleShuffleRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getDeviceInfo
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetDeviceInfoRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo.GetDeviceInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetDeviceInfoRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDeviceInfo", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo.GetDeviceInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetDeviceInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDeviceInfo", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetDeviceInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDeviceInfo.GetDeviceInfoRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getDisklavierSettings
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetDisklavierSettingsRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings.GetDisklavierSettingsRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetDisklavierSettingsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDisklavierSettings", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings.GetDisklavierSettingsRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetDisklavierSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getDisklavierSettings", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetDisklavierSettingsResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetDisklavierSettings.GetDisklavierSettingsRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,84 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getFeatures
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetFeaturesRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures.GetFeaturesRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetFeaturesRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFeatures", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures.GetFeaturesRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetFeaturesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFeatures", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Get the available features for this device
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetFeaturesResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <summary>
|
||||
/// Get the available features for this device
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFeatures.GetFeaturesRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getFuncStatus
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetFuncStatusRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus.GetFuncStatusRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetFuncStatusRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFuncStatus", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus.GetFuncStatusRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetFuncStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getFuncStatus", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetFuncStatusResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetFuncStatus.GetFuncStatusRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getLocationInfo
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetLocationInfoRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo.GetLocationInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetLocationInfoRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getLocationInfo", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo.GetLocationInfoRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetLocationInfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getLocationInfo", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetLocationInfoResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetLocationInfo.GetLocationInfoRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,84 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getNameText
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetNameTextRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText.GetNameTextRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetNameTextRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNameText", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText.GetNameTextRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetNameTextRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNameText", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Get sources friendly names
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetNameTextResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetNameTextResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetNameTextResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetNameTextResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetNameTextResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <summary>
|
||||
/// Get sources friendly names
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNameText.GetNameTextRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getNetworkStandby
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetNetworkStandbyRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby.GetNetworkStandbyRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetNetworkStandbyRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNetworkStandby", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby.GetNetworkStandbyRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetNetworkStandbyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getNetworkStandby", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetNetworkStandbyResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetNetworkStandby.GetNetworkStandbyRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getTag
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetTagRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag.GetTagRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetTagRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getTag", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag.GetTagRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetTagRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getTag", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetTagResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetTagResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetTagResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetTagResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetTagResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetTag.GetTagRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
@@ -0,0 +1,78 @@
|
||||
// <auto-generated/>
|
||||
#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
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds and executes requests for operations under \YamahaExtendedControl\v1\system\getYpaoConfig
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
||||
public partial class GetYpaoConfigRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig.GetYpaoConfigRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="pathParameters">Path parameters for the request</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetYpaoConfigRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getYpaoConfig", pathParameters)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig.GetYpaoConfigRequestBuilder"/> and sets the default values.
|
||||
/// </summary>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
|
||||
public GetYpaoConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/YamahaExtendedControl/v1/system/getYpaoConfig", rawUrl)
|
||||
{
|
||||
}
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse"/></returns>
|
||||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public async Task<global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
#endif
|
||||
var requestInfo = ToGetRequestInformation(requestConfiguration);
|
||||
return await RequestAdapter.SendAsync<global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse>(requestInfo, global::MusicCast.Net.Api.Client.Models.GetYpaoConfigResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
/// <returns>A <see cref="RequestInformation"/></returns>
|
||||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
|
||||
{
|
||||
#nullable restore
|
||||
#else
|
||||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="global::MusicCast.Net.Api.Client.YamahaExtendedControl.V1.System.GetYpaoConfig.GetYpaoConfigRequestBuilder"/></returns>
|
||||
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
|
||||
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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user