Class Sys
- Namespace
- SimpleWeather
- Assembly
- SimpleWeather.dll
Encapsulates system level metadata returned by the current weather API.
public class Sys
- Inheritance
-
Sys
- Inherited Members
Constructors
Sys(JToken?)
Initializes a new instance of the Sys class from JSON data.
public Sys(JToken? data)
Parameters
dataJTokenThe JSON token that contains the system information.
Properties
Country
Country code (ISO 3166) of the location.
public string? Country { get; }
Property Value
ID
Unique identifier for the system block.
public int? ID { get; }
Property Value
- int?
Sunrise
A DateTime object representing sunrise time converted to your local time
public DateTime Sunrise { get; }
Property Value
SunriseTime
Time of sunrise in the format HH:mm
public string? SunriseTime { get; }
Property Value
Sunset
A DateTime object representing sunset time converted to your local time
public DateTime Sunset { get; }
Property Value
SunsetTime
Time of sunset in the format HH:mm
public string? SunsetTime { get; }
Property Value
Type
Internal parameter returned by OpenWeather.
public int? Type { get; }
Property Value
- int?