Class Sys
- Namespace
- SimpleWeather
- Assembly
- SimpleWeather.dll
Encapsulates system level metadata returned by the current weather API.
public class Sys
- Inheritance
-
Sys
- Inherited Members
Properties
Country
Country code (ISO 3166) of the location.
public string? Country { get; }
Property Value
- string
Country code (ISO 3166) of the location.
ID
Unique identifier for the system block.
public int? ID { get; }
Property Value
- int?
Unique identifier for the system block.
Sunrise
A DateTime object representing sunrise time converted to your local time
public DateTime Sunrise { get; }
Property Value
- DateTime
A DateTime object representing sunrise time converted to your local time
SunriseTime
Time of sunrise in the format HH:mm
public string? SunriseTime { get; }
Property Value
- string
Time of sunrise in the format HH:mm
Sunset
A DateTime object representing sunset time converted to your local time
public DateTime Sunset { get; }
Property Value
- DateTime
A DateTime object representing sunset time converted to your local time
SunsetTime
Time of sunset in the format HH:mm
public string? SunsetTime { get; }
Property Value
- string
Time of sunset in the format HH:mm
Type
Internal parameter returned by OpenWeather.
public int? Type { get; }
Property Value
- int?
Internal parameter returned by OpenWeather.
Methods
FromJson(string?)
Creates this model from its OpenWeather JSON fragment.
public static Sys FromJson(string? json)
Parameters
jsonstringThe JSON fragment, or null for an empty model.
Returns
- Sys
The parsed weather model.