mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
210 lines
9.1 KiB
C#
210 lines
9.1 KiB
C#
// <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 Marechai.App.Models
|
|
{
|
|
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
|
|
#pragma warning disable CS1591
|
|
public partial class CompanyDto : 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 address property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? Address { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string Address { get; set; }
|
|
#endif
|
|
/// <summary>The city property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? City { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string City { get; set; }
|
|
#endif
|
|
/// <summary>The country property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? Country { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string Country { get; set; }
|
|
#endif
|
|
/// <summary>The country_id property</summary>
|
|
public int? CountryId { get; set; }
|
|
/// <summary>The facebook property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? Facebook { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string Facebook { get; set; }
|
|
#endif
|
|
/// <summary>The founded property</summary>
|
|
public DateTimeOffset? Founded { get; set; }
|
|
/// <summary>The founded_day_is_unknown property</summary>
|
|
public bool? FoundedDayIsUnknown { get; set; }
|
|
/// <summary>The founded_month_is_unknown property</summary>
|
|
public bool? FoundedMonthIsUnknown { get; set; }
|
|
/// <summary>The id property</summary>
|
|
public int? Id { get; set; }
|
|
/// <summary>The last_logo property</summary>
|
|
public Guid? LastLogo { get; set; }
|
|
/// <summary>The legal_name property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? LegalName { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string LegalName { get; set; }
|
|
#endif
|
|
/// <summary>The name property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? Name { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string Name { get; set; }
|
|
#endif
|
|
/// <summary>The postal_code property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? PostalCode { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string PostalCode { get; set; }
|
|
#endif
|
|
/// <summary>The province property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? Province { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string Province { get; set; }
|
|
#endif
|
|
/// <summary>The sold property</summary>
|
|
public DateTimeOffset? Sold { get; set; }
|
|
/// <summary>The sold_day_is_unknown property</summary>
|
|
public bool? SoldDayIsUnknown { get; set; }
|
|
/// <summary>The sold_month_is_unknown property</summary>
|
|
public bool? SoldMonthIsUnknown { get; set; }
|
|
/// <summary>The sold_to property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? SoldTo { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string SoldTo { get; set; }
|
|
#endif
|
|
/// <summary>The sold_to_id property</summary>
|
|
public int? SoldToId { get; set; }
|
|
/// <summary>The status property</summary>
|
|
public int? Status { get; set; }
|
|
/// <summary>The twitter property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? Twitter { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string Twitter { get; set; }
|
|
#endif
|
|
/// <summary>The website property</summary>
|
|
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
|
#nullable enable
|
|
public string? Website { get; set; }
|
|
#nullable restore
|
|
#else
|
|
public string Website { get; set; }
|
|
#endif
|
|
/// <summary>
|
|
/// Instantiates a new <see cref="global::Marechai.App.Models.CompanyDto"/> and sets the default values.
|
|
/// </summary>
|
|
public CompanyDto()
|
|
{
|
|
AdditionalData = new Dictionary<string, object>();
|
|
}
|
|
/// <summary>
|
|
/// Creates a new instance of the appropriate class based on discriminator value
|
|
/// </summary>
|
|
/// <returns>A <see cref="global::Marechai.App.Models.CompanyDto"/></returns>
|
|
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
|
|
public static global::Marechai.App.Models.CompanyDto CreateFromDiscriminatorValue(IParseNode parseNode)
|
|
{
|
|
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
|
|
return new global::Marechai.App.Models.CompanyDto();
|
|
}
|
|
/// <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>>
|
|
{
|
|
{ "address", n => { Address = n.GetStringValue(); } },
|
|
{ "city", n => { City = n.GetStringValue(); } },
|
|
{ "country", n => { Country = n.GetStringValue(); } },
|
|
{ "country_id", n => { CountryId = n.GetIntValue(); } },
|
|
{ "facebook", n => { Facebook = n.GetStringValue(); } },
|
|
{ "founded", n => { Founded = n.GetDateTimeOffsetValue(); } },
|
|
{ "founded_day_is_unknown", n => { FoundedDayIsUnknown = n.GetBoolValue(); } },
|
|
{ "founded_month_is_unknown", n => { FoundedMonthIsUnknown = n.GetBoolValue(); } },
|
|
{ "id", n => { Id = n.GetIntValue(); } },
|
|
{ "last_logo", n => { LastLogo = n.GetGuidValue(); } },
|
|
{ "legal_name", n => { LegalName = n.GetStringValue(); } },
|
|
{ "name", n => { Name = n.GetStringValue(); } },
|
|
{ "postal_code", n => { PostalCode = n.GetStringValue(); } },
|
|
{ "province", n => { Province = n.GetStringValue(); } },
|
|
{ "sold", n => { Sold = n.GetDateTimeOffsetValue(); } },
|
|
{ "sold_day_is_unknown", n => { SoldDayIsUnknown = n.GetBoolValue(); } },
|
|
{ "sold_month_is_unknown", n => { SoldMonthIsUnknown = n.GetBoolValue(); } },
|
|
{ "sold_to", n => { SoldTo = n.GetStringValue(); } },
|
|
{ "sold_to_id", n => { SoldToId = n.GetIntValue(); } },
|
|
{ "status", n => { Status = n.GetIntValue(); } },
|
|
{ "twitter", n => { Twitter = n.GetStringValue(); } },
|
|
{ "website", n => { Website = n.GetStringValue(); } },
|
|
};
|
|
}
|
|
/// <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)
|
|
{
|
|
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
|
|
writer.WriteStringValue("address", Address);
|
|
writer.WriteStringValue("city", City);
|
|
writer.WriteStringValue("country", Country);
|
|
writer.WriteIntValue("country_id", CountryId);
|
|
writer.WriteStringValue("facebook", Facebook);
|
|
writer.WriteDateTimeOffsetValue("founded", Founded);
|
|
writer.WriteBoolValue("founded_day_is_unknown", FoundedDayIsUnknown);
|
|
writer.WriteBoolValue("founded_month_is_unknown", FoundedMonthIsUnknown);
|
|
writer.WriteIntValue("id", Id);
|
|
writer.WriteGuidValue("last_logo", LastLogo);
|
|
writer.WriteStringValue("legal_name", LegalName);
|
|
writer.WriteStringValue("name", Name);
|
|
writer.WriteStringValue("postal_code", PostalCode);
|
|
writer.WriteStringValue("province", Province);
|
|
writer.WriteDateTimeOffsetValue("sold", Sold);
|
|
writer.WriteBoolValue("sold_day_is_unknown", SoldDayIsUnknown);
|
|
writer.WriteBoolValue("sold_month_is_unknown", SoldMonthIsUnknown);
|
|
writer.WriteStringValue("sold_to", SoldTo);
|
|
writer.WriteIntValue("sold_to_id", SoldToId);
|
|
writer.WriteIntValue("status", Status);
|
|
writer.WriteStringValue("twitter", Twitter);
|
|
writer.WriteStringValue("website", Website);
|
|
writer.WriteAdditionalData(AdditionalData);
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore CS0618
|