// #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 DumpDto : 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 dump_date property public DateTimeOffset? DumpDate { get; set; } /// The dumper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Dumper { get; set; } #nullable restore #else public string Dumper { get; set; } #endif /// The dumping_group property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DumpingGroup { get; set; } #nullable restore #else public string DumpingGroup { get; set; } #endif /// The id property public int? Id { get; set; } /// The media_dump_id property public int? MediaDumpId { get; set; } /// The media_id property public int? MediaId { get; set; } /// The media_title property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? MediaTitle { get; set; } #nullable restore #else public string MediaTitle { get; set; } #endif /// The user_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { get; set; } #nullable restore #else public string UserId { get; set; } #endif /// The username property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Username { get; set; } #nullable restore #else public string Username { get; set; } #endif /// /// Instantiates a new and sets the default values. /// public DumpDto() { 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::Marechai.App.Models.DumpDto CreateFromDiscriminatorValue(IParseNode parseNode) { if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); return new global::Marechai.App.Models.DumpDto(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { { "dump_date", n => { DumpDate = n.GetDateTimeOffsetValue(); } }, { "dumper", n => { Dumper = n.GetStringValue(); } }, { "dumping_group", n => { DumpingGroup = n.GetStringValue(); } }, { "id", n => { Id = n.GetIntValue(); } }, { "media_dump_id", n => { MediaDumpId = n.GetIntValue(); } }, { "media_id", n => { MediaId = n.GetIntValue(); } }, { "media_title", n => { MediaTitle = n.GetStringValue(); } }, { "user_id", n => { UserId = n.GetStringValue(); } }, { "username", n => { Username = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("dump_date", DumpDate); writer.WriteStringValue("dumper", Dumper); writer.WriteStringValue("dumping_group", DumpingGroup); writer.WriteIntValue("id", Id); writer.WriteIntValue("media_dump_id", MediaDumpId); writer.WriteIntValue("media_id", MediaId); writer.WriteStringValue("media_title", MediaTitle); writer.WriteStringValue("user_id", UserId); writer.WriteStringValue("username", Username); writer.WriteAdditionalData(AdditionalData); } } } #pragma warning restore CS0618