|
| 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.Aspects.Monthly |
| 9 | +{ |
| 10 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 11 | + #pragma warning disable CS1591 |
| 12 | + public partial class MonthlyPostRequestBody : 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>Month number (1-12). Defaults to the current month (UTC).</summary> |
| 18 | + public int? Month { get; set; } |
| 19 | + /// <summary>Lunar node convention. "mean" is the smoothed average node, which always moves retrograde; "true" is the osculating node, which tracks the real perturbed node, oscillates up to about 1.5 degrees either side of the mean on a 173-day cycle, and can briefly turn direct. Neither is more correct and they almost always fall in the same sign. Applies to the North and South Node. True is the osculating node and the default, because it is what most Western chart software reports; mean is the smoothed node preferred by several evolutionary schools, so pass "mean" to match one. Nothing else in the chart changes, and the two agree on the sign except when the node sits within about 1.8 degrees of a cusp. Defaults to "true".</summary> |
| 20 | + public global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody_nodeType? NodeType { get; set; } |
| 21 | + /// <summary>Timezone offset from UTC in hours. Event dates and times are reported in this zone, which is what makes a published calendar read correctly for its audience. Defaults to 0 (UTC).</summary> |
| 22 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 23 | +#nullable enable |
| 24 | + public global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone? Timezone { get; set; } |
| 25 | +#nullable restore |
| 26 | +#else |
| 27 | + public global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone Timezone { get; set; } |
| 28 | +#endif |
| 29 | + /// <summary>Year for the aspect calendar (1900-2100). Defaults to the current year (UTC).</summary> |
| 30 | + public int? Year { get; set; } |
| 31 | + /// <summary> |
| 32 | + /// Instantiates a new <see cref="global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody"/> and sets the default values. |
| 33 | + /// </summary> |
| 34 | + public MonthlyPostRequestBody() |
| 35 | + { |
| 36 | + AdditionalData = new Dictionary<string, object>(); |
| 37 | + NodeType = global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody_nodeType.True; |
| 38 | + } |
| 39 | + /// <summary> |
| 40 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 41 | + /// </summary> |
| 42 | + /// <returns>A <see cref="global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody"/></returns> |
| 43 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 44 | + public static global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) |
| 45 | + { |
| 46 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 47 | + return new global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody(); |
| 48 | + } |
| 49 | + /// <summary> |
| 50 | + /// The deserialization information for the current model |
| 51 | + /// </summary> |
| 52 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 53 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 54 | + { |
| 55 | + return new Dictionary<string, Action<IParseNode>> |
| 56 | + { |
| 57 | + { "month", n => { Month = n.GetIntValue(); } }, |
| 58 | + { "nodeType", n => { NodeType = n.GetEnumValue<global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody_nodeType>(); } }, |
| 59 | + { "timezone", n => { Timezone = n.GetObjectValue<global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone>(global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone.CreateFromDiscriminatorValue); } }, |
| 60 | + { "year", n => { Year = n.GetIntValue(); } }, |
| 61 | + }; |
| 62 | + } |
| 63 | + /// <summary> |
| 64 | + /// Serializes information the current object |
| 65 | + /// </summary> |
| 66 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 67 | + public virtual void Serialize(ISerializationWriter writer) |
| 68 | + { |
| 69 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 70 | + writer.WriteIntValue("month", Month); |
| 71 | + writer.WriteEnumValue<global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody_nodeType>("nodeType", NodeType); |
| 72 | + writer.WriteObjectValue<global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone>("timezone", Timezone); |
| 73 | + writer.WriteIntValue("year", Year); |
| 74 | + writer.WriteAdditionalData(AdditionalData); |
| 75 | + } |
| 76 | + /// <summary> |
| 77 | + /// Composed type wrapper for classes <see cref="double"/>, <see cref="string"/> |
| 78 | + /// </summary> |
| 79 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 80 | + public partial class MonthlyPostRequestBody_timezone : IComposedTypeWrapper, IParsable |
| 81 | + { |
| 82 | + /// <summary>Composed type representation for type <see cref="double"/></summary> |
| 83 | + public double? Double { get; set; } |
| 84 | + /// <summary>Composed type representation for type <see cref="string"/></summary> |
| 85 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 86 | +#nullable enable |
| 87 | + public string? String { get; set; } |
| 88 | +#nullable restore |
| 89 | +#else |
| 90 | + public string String { get; set; } |
| 91 | +#endif |
| 92 | + /// <summary> |
| 93 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 94 | + /// </summary> |
| 95 | + /// <returns>A <see cref="global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone"/></returns> |
| 96 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 97 | + public static global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone CreateFromDiscriminatorValue(IParseNode parseNode) |
| 98 | + { |
| 99 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 100 | + var result = new global::RoxyApi.Astrology.Aspects.Monthly.MonthlyPostRequestBody.MonthlyPostRequestBody_timezone(); |
| 101 | + if(parseNode.GetDoubleValue() is double doubleValue) |
| 102 | + { |
| 103 | + result.Double = doubleValue; |
| 104 | + } |
| 105 | + else if(parseNode.GetStringValue() is string stringValue) |
| 106 | + { |
| 107 | + result.String = stringValue; |
| 108 | + } |
| 109 | + return result; |
| 110 | + } |
| 111 | + /// <summary> |
| 112 | + /// The deserialization information for the current model |
| 113 | + /// </summary> |
| 114 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 115 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 116 | + { |
| 117 | + return new Dictionary<string, Action<IParseNode>>(); |
| 118 | + } |
| 119 | + /// <summary> |
| 120 | + /// Serializes information the current object |
| 121 | + /// </summary> |
| 122 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 123 | + public virtual void Serialize(ISerializationWriter writer) |
| 124 | + { |
| 125 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 126 | + if(Double != null) |
| 127 | + { |
| 128 | + writer.WriteDoubleValue(null, Double); |
| 129 | + } |
| 130 | + else if(String != null) |
| 131 | + { |
| 132 | + writer.WriteStringValue(null, String); |
| 133 | + } |
| 134 | + } |
| 135 | + } |
| 136 | + } |
| 137 | +} |
| 138 | +#pragma warning restore CS0618 |
0 commit comments