Class Garmin.ActivityMatcher
Garmin.ActivityMatcher
Defined in: GarminActivityMatcher.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Garmin.ActivityMatcher(deviceXml, allActivityIds, ajaxUrl, ajaxOptions, callback)
The newer activity filter for synchronizing lists.
|
| Method Attributes | Method Name and Description |
|---|---|
|
get(activityId)
Get the matching JSON object for given activity ID from the original response object.
|
|
|
run()
Run the filter.
|
Class Detail
Garmin.ActivityMatcher(deviceXml, allActivityIds, ajaxUrl, ajaxOptions, callback)
The newer activity filter for synchronizing lists. It makes an AJAX request
to a remote service in order to detect matches on the server. It is dependent
on Garmin.Axm.ActivityMatch, which wraps around the json response making it
easy to retrieve the JSON values via javascript.
- Parameters:
- deviceXml
- allActivityIds
- ajaxUrl
- ajaxOptions
- callback
Method Detail
get(activityId)
Get the matching JSON object for given activity ID from the original response object.
Null if not found or if activity matcher service is unavailable.
- Parameters:
- activityId
run()
Run the filter. Makes the AJAX request to find matching IDs on the
server and populates the filtered list.