Table of Contents

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

data JToken

The JSON token that contains the system information.

Properties

Country

Country code (ISO 3166) of the location.

public string? Country { get; }

Property Value

string

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

DateTime

SunriseTime

Time of sunrise in the format HH:mm

public string? SunriseTime { get; }

Property Value

string

Sunset

A DateTime object representing sunset time converted to your local time

public DateTime Sunset { get; }

Property Value

DateTime

SunsetTime

Time of sunset in the format HH:mm

public string? SunsetTime { get; }

Property Value

string

Type

Internal parameter returned by OpenWeather.

public int? Type { get; }

Property Value

int?