Class BeaconsAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.beacons.core.api.BeaconsAPI
-
- All Implemented Interfaces:
RestController
public class BeaconsAPI extends Controller
Class for setting the query parameters of Beacons API. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getBeaconUuids(BeaconsParams beaconsParams, boolean clearCache, ListenerModel<BaseModel<UUIDs>,UUIDs> listener)
Method to getUUIDs
static BeaconsAPI
getInstance()
void
sendIBeaconData(BeaconsParams beaconsParams, BeaconFields beaconFields, ListenerModel<BaseModel<java.util.List<BeaconOffer>>,java.util.List<BeaconOffer>> listener)
Posts the UUID, major and minor values of the iBeacon detected by the device.-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
getInstance
public static BeaconsAPI getInstance()
-
getBeaconUuids
public void getBeaconUuids(BeaconsParams beaconsParams, boolean clearCache, ListenerModel<BaseModel<UUIDs>,UUIDs> listener)
Method to getUUIDs
- Parameters:
beaconsParams
- theBeaconsParams
for Beacon APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
sendIBeaconData
public void sendIBeaconData(BeaconsParams beaconsParams, BeaconFields beaconFields, ListenerModel<BaseModel<java.util.List<BeaconOffer>>,java.util.List<BeaconOffer>> listener)
Posts the UUID, major and minor values of the iBeacon detected by the device.- Parameters:
beaconsParams
- theBeaconsParams
for Beacon APIbeaconFields
- theBeaconFields
for Beacon APIlistener
- callback to handle the results
-
-