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 Book { get; set; }
|
||||
#endif
|
||||
/// <summary>The book_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? BookId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode BookId { get; set; }
|
||||
#endif
|
||||
public long? BookId { get; set; }
|
||||
/// <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 property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
@@ -47,13 +35,7 @@ namespace Marechai.App.Models
|
||||
public string Machine { get; set; }
|
||||
#endif
|
||||
/// <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>
|
||||
/// Instantiates a new <see cref="global::Marechai.App.Models.BookByMachineDto"/> and sets the default values.
|
||||
/// </summary>
|
||||
@@ -80,10 +62,10 @@ namespace Marechai.App.Models
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "book", n => { Book = n.GetStringValue(); } },
|
||||
{ "book_id", n => { BookId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "book_id", n => { BookId = n.GetLongValue(); } },
|
||||
{ "id", n => { Id = n.GetLongValue(); } },
|
||||
{ "machine", n => { Machine = n.GetStringValue(); } },
|
||||
{ "machine_id", n => { MachineId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "machine_id", n => { MachineId = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
@@ -94,10 +76,10 @@ namespace Marechai.App.Models
|
||||
{
|
||||
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("book", Book);
|
||||
writer.WriteObjectValue<UntypedNode>("book_id", BookId);
|
||||
writer.WriteObjectValue<UntypedNode>("id", Id);
|
||||
writer.WriteLongValue("book_id", BookId);
|
||||
writer.WriteLongValue("id", Id);
|
||||
writer.WriteStringValue("machine", Machine);
|
||||
writer.WriteObjectValue<UntypedNode>("machine_id", MachineId);
|
||||
writer.WriteIntValue("machine_id", MachineId);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user