AWFAirQualityPeriod

Objective-C

@interface AWFAirQualityPeriod : AWFWeatherObject

Swift

class AWFAirQualityPeriod : AWFWeatherObject

An AWFAirQualityPeriod object represents data for a single period returned by the airquality endpoint of the Aeris Weather API.

  • GMT date for the period.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSDate *timestamp;

    Swift

    var timestamp: Date? { get set }
  • Local timezone for the forecast period.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSTimeZone *timeZone;

    Swift

    var timeZone: TimeZone? { get set }
  • The air quality category based on the AQI value.

    This value depends on the data method used to calculate the AQI value. The default AQI method is based on the categories from AirNow.

    china - https://en.wikipedia.org/wiki/Air_quality_index india - https://en.wikipedia.org/wiki/Air_quality_index

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *category;

    Swift

    var category: String? { get set }
  • The six-digit hexadecimal color code for the air quality category.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *color;

    Swift

    var color: String? { get set }
  • aqi

    The standardized Air Quality Index value from 0 to 500.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat aqi;

    Swift

    var aqi: CGFloat { get set }
  • The dominant pollutant type.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *dominant;

    Swift

    var dominant: String? { get set }
  • An array of pollutants and their levels.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSArray<AWFAirPollutant *> *pollutants;

    Swift

    var pollutants: [AWFAirPollutant]? { get set }