-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57a12b9
commit 592cd63
Showing
1 changed file
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
// Copyright (c) 2024 tacosontitan | ||
// This file is part of the Weatherstack project, which is distributed under the MIT license. | ||
// See LICENSE for more information. | ||
|
||
namespace Weatherstack; | ||
|
||
/// <summary> | ||
/// Represents the preferred unit of measurement for the weather data. | ||
/// </summary> | ||
/// <remarks> | ||
/// By default, the API will return all results in metric units. Aside | ||
/// from metric units, other common unit formats are supported as well. | ||
/// </remarks> | ||
public enum UnitPreference | ||
{ | ||
/// <summary> | ||
/// Specifies that metric units are preferred (defined as <c>m</c> for metric by the API). | ||
/// </summary> | ||
/// <remarks> | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>Temperature</term> | ||
/// <description>Celsius</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Wind Speed</term> | ||
/// <description>Kilometers per hour</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Pressure</term> | ||
/// <description>Millibars</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Precipitation</term> | ||
/// <description>Millimeters</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Visibility</term> | ||
/// <description>Kilometers</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Snow Depth</term> | ||
/// <description>Centimeters</description> | ||
/// </item> | ||
/// </list> | ||
/// </remarks> | ||
Metric = 0, | ||
|
||
/// <summary> | ||
/// Specifies that imperial units are preferred (defined as <c>s</c> for scientific by the API). | ||
/// </summary> | ||
/// <remarks> | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>Temperature</term> | ||
/// <description>Kelvin</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Wind Speed</term> | ||
/// <description>Kilometers per hour</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Pressure</term> | ||
/// <description>Millibars</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Precipitation</term> | ||
/// <description>Millimeters</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Visibility</term> | ||
/// <description>Kilometers</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Snow Depth</term> | ||
/// <description>Centimeters</description> | ||
/// </item> | ||
/// </list> | ||
/// </remarks> | ||
Scientific = 1, | ||
|
||
/// <summary> | ||
/// Specifies that imperial units are preferred (defined as <c>f</c> for Fahrenheit by the API). | ||
/// </summary> | ||
/// <remarks> | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>Temperature</term> | ||
/// <description>Fahrenheit</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Wind Speed</term> | ||
/// <description>Miles per hour</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Pressure</term> | ||
/// <description>Millibars</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Precipitation</term> | ||
/// <description>Inches</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Visibility</term> | ||
/// <description>Miles</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Snow Depth</term> | ||
/// <description>Inches</description> | ||
/// </item> | ||
/// </list> | ||
/// </remarks> | ||
Imperial = 2 | ||
} |