Table of Contents

Class Alerts

Namespace
SimpleWeather
Assembly
SimpleWeather.dll

Represents a single weather alert returned by the One Call API.

public class Alerts
Inheritance
Alerts
Inherited Members

Constructors

Alerts(JToken?)

Initializes a new instance of the Alerts class from JSON data.

public Alerts(JToken? data)

Parameters

data JToken

The JSON token that contains the alert information.

Properties

Description

Gets the textual description of the alert.

public string? Description { get; }

Property Value

string

End

Gets the local end time of the alert window.

public DateTime End { get; }

Property Value

DateTime

Event

Gets the alert event name.

public string? Event { get; }

Property Value

string

SenderName

Gets the source agency issuing the alert.

public string? SenderName { get; }

Property Value

string

Start

Gets the local start time of the alert window.

public DateTime Start { get; }

Property Value

DateTime

Tags

Gets the raw tags supplied by the API.

public string? Tags { get; }

Property Value

string