Search Results for

    Class WeatherForecastOwm

    The forecast tools (OpenWeatherMap)

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


    Methods

    GetWeatherInfo(long, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Returns
    WeatherForecastInfo

    A class containing properties of weather information

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

    City ID

    APIKey string

    API key

    Unit UnitMeasurement

    The preferred unit to use

    GetWeatherInfo(string, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Returns
    WeatherForecastInfo

    A class containing properties of weather information

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

    City name

    APIKey string

    API Key

    Unit UnitMeasurement

    The preferred unit to use

    GetWeatherInfoAsync(long, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Returns
    Task<WeatherForecastInfo>

    A class containing properties of weather information

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

    City ID

    APIKey string

    API key

    Unit UnitMeasurement

    The preferred unit to use

    GetWeatherInfoAsync(string, string, UnitMeasurement)

    Gets current weather info from OpenWeatherMap

    Returns
    Task<WeatherForecastInfo>

    A class containing properties of weather information

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

    City name

    APIKey string

    API Key

    Unit UnitMeasurement

    The preferred unit to use

    ListAllCities()

    Lists all the available cities

    Returns
    Dictionary<long, string>
    Declaration
    public static Dictionary<long, string> ListAllCities()

    ListAllCitiesAsync()

    Lists all the available cities

    Returns
    Task<Dictionary<long, string>>
    Declaration
    public static Task<Dictionary<long, string>> ListAllCitiesAsync()
    Show / Hide Table of Contents

    Table of contents



      About

      © 2014-2026 Aptivi

      Find us

    •  
    •  
    •  
    •  
    •  
    •  
    • Social media

    •  
    •  
    •  
    •