Add api client project
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user