mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Update Kiota client.
This commit is contained in:
@@ -23,21 +23,9 @@ namespace Marechai.App.Models
|
||||
public string Company { get; set; }
|
||||
#endif
|
||||
/// <summary>The id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? Id { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode Id { get; set; }
|
||||
#endif
|
||||
public long? Id { get; set; }
|
||||
/// <summary>The machine_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? MachineId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode MachineId { get; set; }
|
||||
#endif
|
||||
public int? MachineId { get; set; }
|
||||
/// <summary>The name property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
@@ -47,13 +35,7 @@ namespace Marechai.App.Models
|
||||
public string Name { get; set; }
|
||||
#endif
|
||||
/// <summary>The sound_synth_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? SoundSynthId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode SoundSynthId { get; set; }
|
||||
#endif
|
||||
public int? SoundSynthId { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::Marechai.App.Models.SoundSynthByMachineDto"/> and sets the default values.
|
||||
/// </summary>
|
||||
@@ -80,10 +62,10 @@ namespace Marechai.App.Models
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "company", n => { Company = n.GetStringValue(); } },
|
||||
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "machine_id", n => { MachineId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "id", n => { Id = n.GetLongValue(); } },
|
||||
{ "machine_id", n => { MachineId = n.GetIntValue(); } },
|
||||
{ "name", n => { Name = n.GetStringValue(); } },
|
||||
{ "sound_synth_id", n => { SoundSynthId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "sound_synth_id", n => { SoundSynthId = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
@@ -94,10 +76,10 @@ namespace Marechai.App.Models
|
||||
{
|
||||
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("company", Company);
|
||||
writer.WriteObjectValue<UntypedNode>("id", Id);
|
||||
writer.WriteObjectValue<UntypedNode>("machine_id", MachineId);
|
||||
writer.WriteLongValue("id", Id);
|
||||
writer.WriteIntValue("machine_id", MachineId);
|
||||
writer.WriteStringValue("name", Name);
|
||||
writer.WriteObjectValue<UntypedNode>("sound_synth_id", SoundSynthId);
|
||||
writer.WriteIntValue("sound_synth_id", SoundSynthId);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user