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
Properties
Description
Gets the textual description of the alert.
public string? Description { get; }
Property Value
- string
The textual description of the alert.
End
Gets the local end time of the alert window.
public DateTime End { get; }
Property Value
- DateTime
The local end time of the alert window.
Event
Gets the alert event name.
public string? Event { get; }
Property Value
- string
The alert event name.
SenderName
Gets the source agency issuing the alert.
public string? SenderName { get; }
Property Value
- string
The source agency issuing the alert.
Start
Gets the local start time of the alert window.
public DateTime Start { get; }
Property Value
- DateTime
The local start time of the alert window.
Tags
Gets the raw tags supplied by the API.
public string? Tags { get; }
Property Value
- string
The raw tags supplied by the API.
Methods
FromJson(string?)
Creates this model from its OpenWeather JSON fragment.
public static Alerts FromJson(string? json)
Parameters
jsonstringThe JSON fragment, or null for an empty model.
Returns
- Alerts
The parsed weather model.