EILRequestFetchPublicLocations Class Reference

Inherits from ESTRequestPostJSON
Declared in EILRequestFetchPublicLocations.h
EILRequestFetchPublicLocations.m

Overview

Request to fetch public nearby locations and parsing response. In order to determine nearby public locations, scan for nearby beacons. All the locations that contain at least one of the given beacons (identified by their identifiers) will be fetched.

– initWithBeaconIdentifiers:

Returns a new request object for fetching public locations for given beacons.

- (instancetype)initWithBeaconIdentifiers:(NSArray<NSString*> *)identifiers

Parameters

identifiers

An array containing identifiers of beacons that are used for fetching nearby public locations.

Return Value

A request initialized with identifiers of beacons.

Declared In

EILRequestFetchPublicLocations.h

– initWithBeaconMacs:

Returns a new request object for fetching public locations for given beacons.

- (instancetype)initWithBeaconMacs:(NSArray<NSString*> *)beaconMacs

Parameters

beaconMacs

An array of NSString * containing mac addresses of beacons that are used for fetching nearby public locations.

Return Value

A request initialized with mac addresses of beacons.

This method is deprecated. Use initWithBeaconIdentifiers: instead.

Declared In

EILRequestFetchPublicLocations.h

– sendRequestWithCompletion:

Sends request to Estimote Cloud with completion block.

- (void)sendRequestWithCompletion:(EILRequestFetchPublicLocationsBlock)completion

Discussion

param completion Completion block to be executed when the request finishes.

Declared In

EILRequestFetchPublicLocations.h