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 postWeatherRequestedForType(type: PyzeWeatherRequestType, forDays howManyDays: Int, withAttributes attributes: [NSObject : AnyObject])

    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: NSTimeInterval, withEndDate endInterval: NSTimeInterval, withAttributes attributes: [NSObject : AnyObject])

    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 postWeatherStationsRequestWithClusterData(clusterData: String, atGeoPoint 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: [NSObject : AnyObject])

    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 postWeatherRequestForUVIndexAtPoint(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 postWeatherResponseForType(type: PyzeWeatherRequestType, withAttributes attributes: [NSObject : AnyObject])

    Parameters

    type

    Type querried.

    attributes

    Additional attributes.

  • Post historical weather response.

    Declaration

    Objective-C

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

    Swift

    class func postWeatherResponseForHistoricalData(attributes: [NSObject : AnyObject])

    Parameters

    attributes

    Additional attributes.

  • Post weather station response.

    Declaration

    Objective-C

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

    Swift

    class func postWeatherStationResponseData(attributes: [NSObject : AnyObject])

    Parameters

    attributes

    Additional attributes.

  • Post weather map layer’s response.

    Declaration

    Objective-C

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

    Swift

    class func postWeatherMapLayersResponse(attributes: [NSObject : AnyObject])

    Parameters

    attributes

    Additional attributes.

  • Post weather response for UVIndex.

    Declaration

    Objective-C

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

    Swift

    class func postWeatherResponseForUVIndex(attributes: [NSObject : AnyObject])

    Parameters

    attributes

    Additional attributes.

  • Post forecast request for keywords.

    Declaration

    Objective-C

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

    Swift

    class func postForecastRequestForKeywords(commaSeperateKeywords: String, withAttributes attributes: [NSObject : AnyObject])

    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 postForecastResponseForKeywords(attributes: [NSObject : AnyObject])

    Parameters

    attributes

    Additional attributes.

  • Post forecast fetch for n Days.

    Declaration

    Objective-C

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

    Swift

    class func postForecastFetch(nDays: Int, withAttributes attributes: [NSObject : AnyObject])

    Parameters

    nDays

    Number of days.

    attributes

    Additional attributes.

  • Post forecast fetch response.

    Declaration

    Objective-C

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

    Swift

    class func postForecastFetchResponse(attributes: [NSObject : AnyObject])

    Parameters

    attributes

    Additional attributes.