This repository has been archived on 2021-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
UAPI/include/Weather.h
2017-12-14 17:59:27 +08:00

41 lines
518 B
C++

#pragma once
#include <string>
class ClockTime
{
public:
int h,m;
};
class Weather
{
public:
static Weather GetWeather(const std::string& CityName);
Weather();
bool isReady() const;
std::string city;
int temperature;
int humidity;
std::string wind_direction;
ClockTime sunrise;
ClockTime sunset;
std::string quality;
std::string suggestion;
int o3;
int co;
int pm10;
int pm25;
int aqi;
int so2;
int no2;
private:
int _status;
};