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
dataJTokenThe JSON token that contains the alert information.
Properties
Description
Gets the textual description of the alert.
public string? Description { get; }
Property Value
End
Gets the local end time of the alert window.
public DateTime End { get; }
Property Value
Event
Gets the alert event name.
public string? Event { get; }
Property Value
SenderName
Gets the source agency issuing the alert.
public string? SenderName { get; }
Property Value
Start
Gets the local start time of the alert window.
public DateTime Start { get; }
Property Value
Tags
Gets the raw tags supplied by the API.
public string? Tags { get; }