Class Location
- Namespace
- OverKizApi.Models
- Assembly
- OverKizApi.dll
Geographical and address metadata associated with a Setup.
public sealed class Location
- Inheritance
-
Location
- Inherited Members
Properties
AddressLine1
First line of the street address.
[JsonPropertyName("addressLine1")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? AddressLine1 { get; init; }
Property Value
- string
First line of the street address.
AddressLine2
Second line of the street address (apartment, suite, etc.).
[JsonPropertyName("addressLine2")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? AddressLine2 { get; init; }
Property Value
- string
Second line of the street address (apartment, suite, etc.).
City
City name.
[JsonPropertyName("city")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? City { get; init; }
Property Value
- string
City name.
Country
Country name.
[JsonPropertyName("country")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Country { get; init; }
Property Value
- string
Country name.
CreationTime
Unix epoch millisecond timestamp when the location was created.
[JsonPropertyName("creationTime")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public long CreationTime { get; init; }
Property Value
- long
Unix epoch millisecond timestamp when the location was created.
DawnOffset
Manual dawn offset in minutes (positive = later, negative = earlier).
[JsonPropertyName("dawnOffset")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public int DawnOffset { get; init; }
Property Value
- int
Manual dawn offset in minutes (positive = later, negative = earlier).
DuskOffset
Manual dusk offset in minutes (positive = later, negative = earlier).
[JsonPropertyName("duskOffset")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public int DuskOffset { get; init; }
Property Value
- int
Manual dusk offset in minutes (positive = later, negative = earlier).
LastUpdateTime
Unix epoch millisecond timestamp of the last update, or null if never updated.
[JsonPropertyName("lastUpdateTime")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public long? LastUpdateTime { get; init; }
Property Value
Latitude
Latitude coordinate in decimal degrees.
[JsonPropertyName("latitude")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Latitude { get; init; }
Property Value
- double?
Latitude coordinate in decimal degrees.
Longitude
Longitude coordinate in decimal degrees.
[JsonPropertyName("longitude")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Longitude { get; init; }
Property Value
- double?
Longitude coordinate in decimal degrees.
PostalCode
Postal / ZIP code.
[JsonPropertyName("postalCode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? PostalCode { get; init; }
Property Value
- string
Postal / ZIP code.
SummerSolsticeDuskMinutes
Minutes after sunset at summer solstice (used for dusk offset calculations).
[JsonPropertyName("summerSolsticeDuskMinutes")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? SummerSolsticeDuskMinutes { get; init; }
Property Value
- int?
Minutes after sunset at summer solstice (used for dusk offset calculations).
Timezone
IANA time zone identifier (e.g. "Europe/Paris").
[JsonPropertyName("timezone")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Timezone { get; init; }
Property Value
- string
IANA time zone identifier (e.g.
"Europe/Paris").
TwilightAngle
Twilight angle used for custom-mode calculations.
[JsonPropertyName("twilightAngle")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? TwilightAngle { get; init; }
Property Value
- string
Twilight angle used for custom-mode calculations.
TwilightCity
City used for twilight calculations when TwilightMode is 3.
[JsonPropertyName("twilightCity")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? TwilightCity { get; init; }
Property Value
- string
City used for twilight calculations when TwilightMode is 3.
TwilightMode
Twilight calculation mode (0 = civil, 1 = nautical, 2 = astronomical, 3 = custom city).
[JsonPropertyName("twilightMode")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public int TwilightMode { get; init; }
Property Value
- int
Twilight calculation mode (0 = civil, 1 = nautical, 2 = astronomical, 3 = custom city).
TwilightOffsetEnabled
Whether manual dawn/dusk offsets are enabled.
[JsonPropertyName("twilightOffsetEnabled")]
public bool TwilightOffsetEnabled { get; init; }
Property Value
- bool
Whether manual dawn/dusk offsets are enabled.
WinterSolsticeDuskMinutes
Minutes after sunset at winter solstice (used for dusk offset calculations).
[JsonPropertyName("winterSolsticeDuskMinutes")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? WinterSolsticeDuskMinutes { get; init; }
Property Value
- int?
Minutes after sunset at winter solstice (used for dusk offset calculations).