Files
marechai/Marechai.App/Services/Client/Models/BrowserTest.cs

162 lines
7.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 BrowserTest : 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 agif property</summary>
public bool? Agif { get; set; }
/// <summary>The browser property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Browser { get; set; }
#nullable restore
#else
public string Browser { get; set; }
#endif
/// <summary>The colors property</summary>
public bool? Colors { get; set; }
/// <summary>The createdOn property</summary>
public DateTimeOffset? CreatedOn { get; set; }
/// <summary>The flash property</summary>
public bool? Flash { get; set; }
/// <summary>The frames property</summary>
public bool? Frames { get; set; }
/// <summary>The gif87 property</summary>
public bool? Gif87 { get; set; }
/// <summary>The gif89 property</summary>
public bool? Gif89 { get; set; }
/// <summary>The id property</summary>
public int? Id { get; set; }
/// <summary>The jpeg property</summary>
public bool? Jpeg { get; set; }
/// <summary>The js property</summary>
public bool? Js { get; set; }
/// <summary>The os property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Os { get; set; }
#nullable restore
#else
public string Os { get; set; }
#endif
/// <summary>The platform property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Platform { get; set; }
#nullable restore
#else
public string Platform { get; set; }
#endif
/// <summary>The png property</summary>
public bool? Png { get; set; }
/// <summary>The pngt property</summary>
public bool? Pngt { get; set; }
/// <summary>The table property</summary>
public bool? Table { get; set; }
/// <summary>The updatedOn property</summary>
public DateTimeOffset? UpdatedOn { get; set; }
/// <summary>The userAgent property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UserAgent { get; set; }
#nullable restore
#else
public string UserAgent { get; set; }
#endif
/// <summary>The version property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Version { get; set; }
#nullable restore
#else
public string Version { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::Marechai.App.Models.BrowserTest"/> and sets the default values.
/// </summary>
public BrowserTest()
{
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.BrowserTest"/></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.BrowserTest CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Marechai.App.Models.BrowserTest();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "agif", n => { Agif = n.GetBoolValue(); } },
{ "browser", n => { Browser = n.GetStringValue(); } },
{ "colors", n => { Colors = n.GetBoolValue(); } },
{ "createdOn", n => { CreatedOn = n.GetDateTimeOffsetValue(); } },
{ "flash", n => { Flash = n.GetBoolValue(); } },
{ "frames", n => { Frames = n.GetBoolValue(); } },
{ "gif87", n => { Gif87 = n.GetBoolValue(); } },
{ "gif89", n => { Gif89 = n.GetBoolValue(); } },
{ "id", n => { Id = n.GetIntValue(); } },
{ "jpeg", n => { Jpeg = n.GetBoolValue(); } },
{ "js", n => { Js = n.GetBoolValue(); } },
{ "os", n => { Os = n.GetStringValue(); } },
{ "platform", n => { Platform = n.GetStringValue(); } },
{ "png", n => { Png = n.GetBoolValue(); } },
{ "pngt", n => { Pngt = n.GetBoolValue(); } },
{ "table", n => { Table = n.GetBoolValue(); } },
{ "updatedOn", n => { UpdatedOn = n.GetDateTimeOffsetValue(); } },
{ "userAgent", n => { UserAgent = n.GetStringValue(); } },
{ "version", n => { Version = 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.WriteBoolValue("agif", Agif);
writer.WriteStringValue("browser", Browser);
writer.WriteBoolValue("colors", Colors);
writer.WriteDateTimeOffsetValue("createdOn", CreatedOn);
writer.WriteBoolValue("flash", Flash);
writer.WriteBoolValue("frames", Frames);
writer.WriteBoolValue("gif87", Gif87);
writer.WriteBoolValue("gif89", Gif89);
writer.WriteIntValue("id", Id);
writer.WriteBoolValue("jpeg", Jpeg);
writer.WriteBoolValue("js", Js);
writer.WriteStringValue("os", Os);
writer.WriteStringValue("platform", Platform);
writer.WriteBoolValue("png", Png);
writer.WriteBoolValue("pngt", Pngt);
writer.WriteBoolValue("table", Table);
writer.WriteDateTimeOffsetValue("updatedOn", UpdatedOn);
writer.WriteStringValue("userAgent", UserAgent);
writer.WriteStringValue("version", Version);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618