Search Results for

    Show / Hide Table of Contents

    Class WeatherForecastOwm

    The forecast tools (OpenWeatherMap)

    Inheritance
    object
    WeatherForecastOwm
    Namespace: Nettify.Weather
    Assembly: Nettify.dll
    Syntax
    public static class WeatherForecastOwm

    Methods

    | Edit this page View Source

    GetWeatherInfo(long, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Declaration
    public static WeatherForecastInfo GetWeatherInfo(long CityID, string APIKey, UnitMeasurement Unit = UnitMeasurement.Metric)
    Parameters
    Type Name Description
    long CityID

    City ID

    string APIKey

    API key

    UnitMeasurement Unit

    The preferred unit to use

    Returns
    Type Description
    WeatherForecastInfo

    A class containing properties of weather information

    | Edit this page View Source

    GetWeatherInfo(string, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Declaration
    public static WeatherForecastInfo GetWeatherInfo(string CityName, string APIKey, UnitMeasurement Unit = UnitMeasurement.Metric)
    Parameters
    Type Name Description
    string CityName

    City name

    string APIKey

    API Key

    UnitMeasurement Unit

    The preferred unit to use

    Returns
    Type Description
    WeatherForecastInfo

    A class containing properties of weather information

    | Edit this page View Source

    GetWeatherInfoAsync(long, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Declaration
    public static Task<WeatherForecastInfo> GetWeatherInfoAsync(long CityID, string APIKey, UnitMeasurement Unit = UnitMeasurement.Metric)
    Parameters
    Type Name Description
    long CityID

    City ID

    string APIKey

    API key

    UnitMeasurement Unit

    The preferred unit to use

    Returns
    Type Description
    Task<WeatherForecastInfo>

    A class containing properties of weather information

    | Edit this page View Source

    GetWeatherInfoAsync(string, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Declaration
    public static Task<WeatherForecastInfo> GetWeatherInfoAsync(string CityName, string APIKey, UnitMeasurement Unit = UnitMeasurement.Metric)
    Parameters
    Type Name Description
    string CityName

    City name

    string APIKey

    API Key

    UnitMeasurement Unit

    The preferred unit to use

    Returns
    Type Description
    Task<WeatherForecastInfo>

    A class containing properties of weather information

    | Edit this page View Source

    ListAllCities()

    Lists all the available cities

    Declaration
    public static Dictionary<long, string> ListAllCities()
    Returns
    Type Description
    Dictionary<long, string>
    | Edit this page View Source

    ListAllCitiesAsync()

    Lists all the available cities

    Declaration
    public static Task<Dictionary<long, string>> ListAllCitiesAsync()
    Returns
    Type Description
    Task<Dictionary<long, string>>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX