// #pragma warning disable CS0618 using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System; namespace MusicCast.Net.Api.Client.Models { [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public partial class GetStatusResponse : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The disable_flags property public int? DisableFlags { get; set; } /// The distribution_enable property public bool? DistributionEnable { get; set; } /// The input property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Input { get; set; } #nullable restore #else public string Input { get; set; } #endif /// The link_audio_delay property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LinkAudioDelay { get; set; } #nullable restore #else public string LinkAudioDelay { get; set; } #endif /// The link_audio_quality property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LinkAudioQuality { get; set; } #nullable restore #else public string LinkAudioQuality { get; set; } #endif /// The link_control property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LinkControl { get; set; } #nullable restore #else public string LinkControl { get; set; } #endif /// The max_volume property public int? MaxVolume { get; set; } /// The mute property public bool? Mute { get; set; } /// The power property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Power { get; set; } #nullable restore #else public string Power { get; set; } #endif /// The response_code property public int? ResponseCode { get; set; } /// The sleep property public int? Sleep { get; set; } /// The volume property public int? Volume { get; set; } /// /// Instantiates a new and sets the default values. /// public GetStatusResponse() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// A /// The parse node to use to read the discriminator value and create the object public static global::MusicCast.Net.Api.Client.Models.GetStatusResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new global::MusicCast.Net.Api.Client.Models.GetStatusResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { { "disable_flags", n => { DisableFlags = n.GetIntValue(); } }, { "distribution_enable", n => { DistributionEnable = n.GetBoolValue(); } }, { "input", n => { Input = n.GetStringValue(); } }, { "link_audio_delay", n => { LinkAudioDelay = n.GetStringValue(); } }, { "link_audio_quality", n => { LinkAudioQuality = n.GetStringValue(); } }, { "link_control", n => { LinkControl = n.GetStringValue(); } }, { "max_volume", n => { MaxVolume = n.GetIntValue(); } }, { "mute", n => { Mute = n.GetBoolValue(); } }, { "power", n => { Power = n.GetStringValue(); } }, { "response_code", n => { ResponseCode = n.GetIntValue(); } }, { "sleep", n => { Sleep = n.GetIntValue(); } }, { "volume", n => { Volume = n.GetIntValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("disable_flags", DisableFlags); writer.WriteBoolValue("distribution_enable", DistributionEnable); writer.WriteStringValue("input", Input); writer.WriteStringValue("link_audio_delay", LinkAudioDelay); writer.WriteStringValue("link_audio_quality", LinkAudioQuality); writer.WriteStringValue("link_control", LinkControl); writer.WriteIntValue("max_volume", MaxVolume); writer.WriteBoolValue("mute", Mute); writer.WriteStringValue("power", Power); writer.WriteIntValue("response_code", ResponseCode); writer.WriteIntValue("sleep", Sleep); writer.WriteIntValue("volume", Volume); writer.WriteAdditionalData(AdditionalData); } } } #pragma warning restore CS0618