Class TimeZoneResponse
- Namespace
- GoogleMapsApi.Entities.TimeZone.Response
- Assembly
- GoogleMapsApi.dll
Response from the Google Time Zone API containing the time-zone identifier, UTC offset, and DST offset for the queried location.
public class TimeZoneResponse : IResponseFor<TimeZoneRequest>
- Inheritance
-
TimeZoneResponse
- Implements
- Inherited Members
Properties
DstOffset
DstOffset: the offset for daylight-savings time in seconds. This will be zero if the time zone is not in Daylight Savings Time during the specified timestamp.
[JsonPropertyName("dstOffset")]
public double DstOffset { get; set; }
Property Value
RawOffset
RawOffset: the offset from UTC (in seconds) for the given location. This does not take into effect daylight savings.
[JsonPropertyName("rawOffset")]
public double RawOffset { get; set; }
Property Value
Status
"status" contains metadata on the request.
[JsonPropertyName("status")]
[JsonConverter(typeof(EnumMemberJsonConverter<Status>))]
public Status Status { get; set; }
Property Value
TimeZoneId
TimeZoneId: a string containing the ID of the time zone, such as "America/Los_Angeles" or "Australia/Sydney".
[JsonPropertyName("timeZoneId")]
public string TimeZoneId { get; set; }
Property Value
TimeZoneName
TimeZoneName: a string containing the long form name of the time zone. This field will be localized if the language parameter is set. eg. "Pacific Daylight Time" or "Australian.
[JsonPropertyName("timeZoneName")]
public string TimeZoneName { get; set; }