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,23 +23,11 @@ namespace Marechai.App.Models
|
||||
public string Country { get; set; }
|
||||
#endif
|
||||
/// <summary>The country_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? CountryId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode CountryId { get; set; }
|
||||
#endif
|
||||
public int? CountryId { get; set; }
|
||||
/// <summary>The first_publication property</summary>
|
||||
public DateTimeOffset? FirstPublication { 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 issn property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
@@ -100,9 +88,9 @@ namespace Marechai.App.Models
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "country", n => { Country = n.GetStringValue(); } },
|
||||
{ "country_id", n => { CountryId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "country_id", n => { CountryId = n.GetIntValue(); } },
|
||||
{ "first_publication", n => { FirstPublication = n.GetDateTimeOffsetValue(); } },
|
||||
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "id", n => { Id = n.GetLongValue(); } },
|
||||
{ "issn", n => { Issn = n.GetStringValue(); } },
|
||||
{ "native_title", n => { NativeTitle = n.GetStringValue(); } },
|
||||
{ "published", n => { Published = n.GetDateTimeOffsetValue(); } },
|
||||
@@ -118,9 +106,9 @@ namespace Marechai.App.Models
|
||||
{
|
||||
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("country", Country);
|
||||
writer.WriteObjectValue<UntypedNode>("country_id", CountryId);
|
||||
writer.WriteIntValue("country_id", CountryId);
|
||||
writer.WriteDateTimeOffsetValue("first_publication", FirstPublication);
|
||||
writer.WriteObjectValue<UntypedNode>("id", Id);
|
||||
writer.WriteLongValue("id", Id);
|
||||
writer.WriteStringValue("issn", Issn);
|
||||
writer.WriteStringValue("native_title", NativeTitle);
|
||||
writer.WriteDateTimeOffsetValue("published", Published);
|
||||
|
||||
Reference in New Issue
Block a user