|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable CS0618 |
| 3 | +using Microsoft.Kiota.Abstractions.Extensions; |
| 4 | +using Microsoft.Kiota.Abstractions.Serialization; |
| 5 | +using Microsoft.Kiota.Abstractions; |
| 6 | +using System.Collections.Generic; |
| 7 | +using System.IO; |
| 8 | +using System; |
| 9 | +namespace RoxyApi.Models |
| 10 | +{ |
| 11 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 12 | + #pragma warning disable CS1591 |
| 13 | + public partial class ArudhaRequest : IAdditionalDataHolder, IParsable |
| 14 | + #pragma warning restore CS1591 |
| 15 | + { |
| 16 | + /// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary> |
| 17 | + public IDictionary<string, object> AdditionalData { get; set; } |
| 18 | + /// <summary>Birth date in YYYY-MM-DD format. Date determines planetary positions and nakshatra calculations for Vedic kundli (janam patri). Accurate birth date is essential for dashas, yoga calculations, and divisional charts (vargas).</summary> |
| 19 | + public Date? Date { get; set; } |
| 20 | + /// <summary>Birth location latitude in decimal degrees. Location determines local sidereal time for Lagna calculation and affects bhava (house) cusps. Example: Delhi 28.6139, Mumbai 19.0760, Kathmandu 27.7172.</summary> |
| 21 | + public double? Latitude { get; set; } |
| 22 | + /// <summary>Birth location longitude in decimal degrees. Affects local time calculations and ayanamsha adjustments. Example: Delhi 77.2090, Mumbai 72.8777, Kathmandu 85.3240.</summary> |
| 23 | + public double? Longitude { get; set; } |
| 24 | + /// <summary>Birth time in 24-hour HH:MM:SS format. Time is CRITICAL for Lagna (Ascendant) calculation and house divisions. It changes every two hours roughly. Even minutes matter for accurate nakshatra pada and divisional chart (D9, D10) calculations. Without exact time, Lagna and house-based predictions will be incorrect.</summary> |
| 25 | + public Time? Time { get; set; } |
| 26 | + /// <summary>Timezone: IANA name (e.g. "America/New_York", "Europe/London") OR decimal hours from UTC (e.g. -5 for EST, 1 for CET). IANA strings are resolved to the DST-correct offset for the given date, so you can pass `cities[0].timezone` from /location/search directly. Defaults to 5.5.</summary> |
| 27 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 28 | +#nullable enable |
| 29 | + public global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone? Timezone { get; set; } |
| 30 | +#nullable restore |
| 31 | +#else |
| 32 | + public global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone Timezone { get; set; } |
| 33 | +#endif |
| 34 | + /// <summary> |
| 35 | + /// Instantiates a new <see cref="global::RoxyApi.Models.ArudhaRequest"/> and sets the default values. |
| 36 | + /// </summary> |
| 37 | + public ArudhaRequest() |
| 38 | + { |
| 39 | + AdditionalData = new Dictionary<string, object>(); |
| 40 | + } |
| 41 | + /// <summary> |
| 42 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 43 | + /// </summary> |
| 44 | + /// <returns>A <see cref="global::RoxyApi.Models.ArudhaRequest"/></returns> |
| 45 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 46 | + public static global::RoxyApi.Models.ArudhaRequest CreateFromDiscriminatorValue(IParseNode parseNode) |
| 47 | + { |
| 48 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 49 | + return new global::RoxyApi.Models.ArudhaRequest(); |
| 50 | + } |
| 51 | + /// <summary> |
| 52 | + /// The deserialization information for the current model |
| 53 | + /// </summary> |
| 54 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 55 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 56 | + { |
| 57 | + return new Dictionary<string, Action<IParseNode>> |
| 58 | + { |
| 59 | + { "date", n => { Date = n.GetDateValue(); } }, |
| 60 | + { "latitude", n => { Latitude = n.GetDoubleValue(); } }, |
| 61 | + { "longitude", n => { Longitude = n.GetDoubleValue(); } }, |
| 62 | + { "time", n => { Time = n.GetTimeValue(); } }, |
| 63 | + { "timezone", n => { Timezone = n.GetObjectValue<global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone>(global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone.CreateFromDiscriminatorValue); } }, |
| 64 | + }; |
| 65 | + } |
| 66 | + /// <summary> |
| 67 | + /// Serializes information the current object |
| 68 | + /// </summary> |
| 69 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 70 | + public virtual void Serialize(ISerializationWriter writer) |
| 71 | + { |
| 72 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 73 | + writer.WriteDateValue("date", Date); |
| 74 | + writer.WriteDoubleValue("latitude", Latitude); |
| 75 | + writer.WriteDoubleValue("longitude", Longitude); |
| 76 | + writer.WriteTimeValue("time", Time); |
| 77 | + writer.WriteObjectValue<global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone>("timezone", Timezone); |
| 78 | + writer.WriteAdditionalData(AdditionalData); |
| 79 | + } |
| 80 | + /// <summary> |
| 81 | + /// Composed type wrapper for classes <see cref="double"/>, <see cref="string"/> |
| 82 | + /// </summary> |
| 83 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 84 | + public partial class ArudhaRequest_timezone : IComposedTypeWrapper, IParsable |
| 85 | + { |
| 86 | + /// <summary>Composed type representation for type <see cref="double"/></summary> |
| 87 | + public double? Double { get; set; } |
| 88 | + /// <summary>Composed type representation for type <see cref="string"/></summary> |
| 89 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 90 | +#nullable enable |
| 91 | + public string? String { get; set; } |
| 92 | +#nullable restore |
| 93 | +#else |
| 94 | + public string String { get; set; } |
| 95 | +#endif |
| 96 | + /// <summary> |
| 97 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 98 | + /// </summary> |
| 99 | + /// <returns>A <see cref="global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone"/></returns> |
| 100 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 101 | + public static global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone CreateFromDiscriminatorValue(IParseNode parseNode) |
| 102 | + { |
| 103 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 104 | + var result = new global::RoxyApi.Models.ArudhaRequest.ArudhaRequest_timezone(); |
| 105 | + if(parseNode.GetDoubleValue() is double doubleValue) |
| 106 | + { |
| 107 | + result.Double = doubleValue; |
| 108 | + } |
| 109 | + else if(parseNode.GetStringValue() is string stringValue) |
| 110 | + { |
| 111 | + result.String = stringValue; |
| 112 | + } |
| 113 | + return result; |
| 114 | + } |
| 115 | + /// <summary> |
| 116 | + /// The deserialization information for the current model |
| 117 | + /// </summary> |
| 118 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 119 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 120 | + { |
| 121 | + return new Dictionary<string, Action<IParseNode>>(); |
| 122 | + } |
| 123 | + /// <summary> |
| 124 | + /// Serializes information the current object |
| 125 | + /// </summary> |
| 126 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 127 | + public virtual void Serialize(ISerializationWriter writer) |
| 128 | + { |
| 129 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 130 | + if(Double != null) |
| 131 | + { |
| 132 | + writer.WriteDoubleValue(null, Double); |
| 133 | + } |
| 134 | + else if(String != null) |
| 135 | + { |
| 136 | + writer.WriteStringValue(null, String); |
| 137 | + } |
| 138 | + } |
| 139 | + } |
| 140 | + } |
| 141 | +} |
| 142 | +#pragma warning restore CS0618 |
0 commit comments