|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable CS0618 |
| 3 | +using Microsoft.Kiota.Abstractions.Extensions; |
| 4 | +using Microsoft.Kiota.Abstractions.Serialization; |
| 5 | +using System.Collections.Generic; |
| 6 | +using System.IO; |
| 7 | +using System; |
| 8 | +namespace RoxyApi.Astrology.Horoscope.Item.Daily |
| 9 | +{ |
| 10 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 11 | + #pragma warning disable CS1591 |
| 12 | + public partial class DailyGetResponse_events : IAdditionalDataHolder, IParsable |
| 13 | + #pragma warning restore CS1591 |
| 14 | + { |
| 15 | + /// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary> |
| 16 | + public IDictionary<string, object> AdditionalData { get; set; } |
| 17 | + /// <summary>Angle formed, on aspect events only: conjunction, sextile, square, trine, opposition, semi-sextile, quincunx, semi-square, or sesquiquadrate.</summary> |
| 18 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 19 | +#nullable enable |
| 20 | + public string? Aspect { get; set; } |
| 21 | +#nullable restore |
| 22 | +#else |
| 23 | + public string Aspect { get; set; } |
| 24 | +#endif |
| 25 | + /// <summary>Exact instant the event perfects, UTC, to the second. Verifiable against NASA JPL Horizons for a position event and against the US Naval Observatory for a lunar phase or eclipse.</summary> |
| 26 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 27 | +#nullable enable |
| 28 | + public string? At { get; set; } |
| 29 | +#nullable restore |
| 30 | +#else |
| 31 | + public string At { get; set; } |
| 32 | +#endif |
| 33 | + /// <summary>Bodies involved, canonical English regardless of the requested language so the value stays safe to switch on. Two entries for an aspect, faster body first. One entry for an ingress, a station, a lunar phase, or an eclipse.</summary> |
| 34 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 35 | +#nullable enable |
| 36 | + public List<string>? Bodies { get; set; } |
| 37 | +#nullable restore |
| 38 | +#else |
| 39 | + public List<string> Bodies { get; set; } |
| 40 | +#endif |
| 41 | + /// <summary>Whole-sign house the event falls in, counted from the queried sign, 1 to 12. This is what turns one global sky event into a statement about this reader.</summary> |
| 42 | + public int? House { get; set; } |
| 43 | + /// <summary>Sign the event falls in, lowercase, where it has exactly one. Absent for an aspect whose two bodies stand in different signs.</summary> |
| 44 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 45 | +#nullable enable |
| 46 | + public string? Sign { get; set; } |
| 47 | +#nullable restore |
| 48 | +#else |
| 49 | + public string Sign { get; set; } |
| 50 | +#endif |
| 51 | + /// <summary>End of the window this event holds open, UTC, given only where a bounded window is a real fact about it: the orb span of an aspect, the sign span of an ingress or a season, the retrograde span of a station. Absent for a lunar phase or an eclipse, which are instants and not spans.</summary> |
| 52 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 53 | +#nullable enable |
| 54 | + public string? Through { get; set; } |
| 55 | +#nullable restore |
| 56 | +#else |
| 57 | + public string Through { get; set; } |
| 58 | +#endif |
| 59 | + /// <summary>Kind of event. aspect is an exact angle between two moving bodies, sign-ingress a body entering a new sign, retrograde-station a body turning retrograde or direct, lunar-phase one of the four quarters, eclipse a solar or lunar eclipse, and solar-season the Sun entering a sign.</summary> |
| 60 | + public global::RoxyApi.Astrology.Horoscope.Item.Daily.DailyGetResponse_events_type? Type { get; set; } |
| 61 | + /// <summary> |
| 62 | + /// Instantiates a new <see cref="global::RoxyApi.Astrology.Horoscope.Item.Daily.DailyGetResponse_events"/> and sets the default values. |
| 63 | + /// </summary> |
| 64 | + public DailyGetResponse_events() |
| 65 | + { |
| 66 | + AdditionalData = new Dictionary<string, object>(); |
| 67 | + } |
| 68 | + /// <summary> |
| 69 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 70 | + /// </summary> |
| 71 | + /// <returns>A <see cref="global::RoxyApi.Astrology.Horoscope.Item.Daily.DailyGetResponse_events"/></returns> |
| 72 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 73 | + public static global::RoxyApi.Astrology.Horoscope.Item.Daily.DailyGetResponse_events CreateFromDiscriminatorValue(IParseNode parseNode) |
| 74 | + { |
| 75 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 76 | + return new global::RoxyApi.Astrology.Horoscope.Item.Daily.DailyGetResponse_events(); |
| 77 | + } |
| 78 | + /// <summary> |
| 79 | + /// The deserialization information for the current model |
| 80 | + /// </summary> |
| 81 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 82 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 83 | + { |
| 84 | + return new Dictionary<string, Action<IParseNode>> |
| 85 | + { |
| 86 | + { "aspect", n => { Aspect = n.GetStringValue(); } }, |
| 87 | + { "at", n => { At = n.GetStringValue(); } }, |
| 88 | + { "bodies", n => { Bodies = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } }, |
| 89 | + { "house", n => { House = n.GetIntValue(); } }, |
| 90 | + { "sign", n => { Sign = n.GetStringValue(); } }, |
| 91 | + { "through", n => { Through = n.GetStringValue(); } }, |
| 92 | + { "type", n => { Type = n.GetEnumValue<global::RoxyApi.Astrology.Horoscope.Item.Daily.DailyGetResponse_events_type>(); } }, |
| 93 | + }; |
| 94 | + } |
| 95 | + /// <summary> |
| 96 | + /// Serializes information the current object |
| 97 | + /// </summary> |
| 98 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 99 | + public virtual void Serialize(ISerializationWriter writer) |
| 100 | + { |
| 101 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 102 | + writer.WriteStringValue("aspect", Aspect); |
| 103 | + writer.WriteStringValue("at", At); |
| 104 | + writer.WriteCollectionOfPrimitiveValues<string>("bodies", Bodies); |
| 105 | + writer.WriteIntValue("house", House); |
| 106 | + writer.WriteStringValue("sign", Sign); |
| 107 | + writer.WriteStringValue("through", Through); |
| 108 | + writer.WriteEnumValue<global::RoxyApi.Astrology.Horoscope.Item.Daily.DailyGetResponse_events_type>("type", Type); |
| 109 | + writer.WriteAdditionalData(AdditionalData); |
| 110 | + } |
| 111 | + } |
| 112 | +} |
| 113 | +#pragma warning restore CS0618 |
0 commit comments