PyzeWeatherAndForecast

@interface PyzeWeatherAndForecast : PyzeCustomEvent

PyzeWeatherAndForecast

Subclass of PyzeCustomEvent can be used to post events related to Weather and Forecast.

  • Post weather request for type.

    Declaration

    Objective-C

    + (void)postWeatherRequestedForType:(PyzeWeatherRequestType)type
                                forDays:(NSInteger)howManyDays
                         withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherRequested(for type: PyzeWeatherRequestType, forDays howManyDays: Int, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    type

    Type you wish to query weather app.

    howManyDays

    Number of days.

    attributes

    Addition attributes.

  • Post weather historical request data.

    Declaration

    Objective-C

    + (void)postWeatherHistoricalRequest:(NSTimeInterval)startingInterval
                             withEndDate:(NSTimeInterval)endInterval
                          withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherHistoricalRequest(_ startingInterval: TimeInterval, withEndDate endInterval: TimeInterval, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    startingInterval

    Timestamp to start with.

    endInterval

    End timestamp interval.

    attributes

    Additional attributes.

  • Post weather station request.

    Declaration

    Objective-C

    + (void)
    postWeatherStationsRequestWithClusterData:(nonnull NSString *)clusterData
                                   atGeoPoint:(nonnull PyzeGeoPoint *)point
                               withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherStationsRequest(withClusterData clusterData: String, at point: UnsafeMutablePointer

    Parameters

    clusterData

    Cluster data to pass.

    point

    Geo point of the station.

    attributes

    Additional attributes.

  • Post request of weather maps. Weather maps include precipitation, clouds, pressure, temperature, wind and more.

    Declaration

    Objective-C

    + (void)postWeatherMapLayersRequested:(nonnull NSString *)layerName
                           withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherMapLayersRequested(_ layerName: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    layerName

    Layer name.

    attributes

    Additional attributes.

  • Post request for UVIndex.

    Declaration

    Objective-C

    + (void)postWeatherRequestForUVIndexAtPoint:(nonnull PyzeGeoPoint *)point
                                 withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherRequestForUVIndex(at point: UnsafeMutablePointer

    Parameters

    point

    Geo point.

    attributes

    Additional attributes.

  • Post response received for weather request for type.

    Declaration

    Objective-C

    + (void)postWeatherResponseForType:(PyzeWeatherRequestType)type
                        withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherResponse(for type: PyzeWeatherRequestType, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    type

    Type querried.

    attributes

    Additional attributes.

  • Post historical weather response.

    Declaration

    Objective-C

    + (void)postWeatherResponseForHistoricalData:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherResponse(forHistoricalData attributes: [AnyHashable : Any])

    Parameters

    attributes

    Additional attributes.

  • Post weather station response.

    Declaration

    Objective-C

    + (void)postWeatherStationResponseData:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherStationResponseData(_ attributes: [AnyHashable : Any])

    Parameters

    attributes

    Additional attributes.

  • Post weather map layer’s response.

    Declaration

    Objective-C

    + (void)postWeatherMapLayersResponse:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherMapLayersResponse(_ attributes: [AnyHashable : Any])

    Parameters

    attributes

    Additional attributes.

  • Post weather response for UVIndex.

    Declaration

    Objective-C

    + (void)postWeatherResponseForUVIndex:(nonnull NSDictionary *)attributes;

    Swift

    class func postWeatherResponse(forUVIndex attributes: [AnyHashable : Any])

    Parameters

    attributes

    Additional attributes.

  • Post forecast request for keywords.

    Declaration

    Objective-C

    + (void)postForecastRequestForKeywords:(nonnull NSString *)commaSeperateKeywords
                            withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postRequest(forKeywords commaSeperateKeywords: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    commaSeperateKeywords

    Keywords used to search forecast and are comma seperated.

    attributes

    Additional attributes.

  • Post response received for keywords.

    Declaration

    Objective-C

    + (void)postForecastResponseForKeywords:(nonnull NSDictionary *)attributes;

    Swift

    class func postResponse(forKeywords attributes: [AnyHashable : Any])

    Parameters

    attributes

    Additional attributes.

  • Post forecast fetch for n Days.

    Declaration

    Objective-C

    + (void)postForecastFetch:(NSInteger)nDays
               withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postFetch(_ nDays: Int, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    nDays

    Number of days.

    attributes

    Additional attributes.

  • Post forecast fetch response.

    Declaration

    Objective-C

    + (void)postForecastFetchResponse:(nonnull NSDictionary *)attributes;

    Swift

    class func postFetchResponse(_ attributes: [AnyHashable : Any])

    Parameters

    attributes

    Additional attributes.