User Events
Info
This document is a work in progress.
Currently, User events contain below events, still working in progress:
- User Events
- Set Home Event - Should be sent by HMI when user adds/removes home address, user can add/remove by setting ActionType as ADD/DELETE.
- Set Work Event - Should be sent by HMI when user adds/removes work address, user can add/remove by setting ActionType as ADD/DELETE.
User Events
Set Home Event
Set home event should be sent by HMI when user adds/removes home address, user can add/remove by setting ActionType as ADD/DELETE.
Key methods
Method |
Details |
setEntityId(String entity_id) |
The EntityId address/POI, mandatory data field. |
setLat(Double lat) |
Set to raw latitude, mandatory data field. |
setLon(Double lon) |
Set to raw longitude, mandatory data field. |
setActionType(ActionType action) |
ActionType as ADD/DELETE when user add/remove home address, mandatory data field. |
setLabel(String label) |
For the name alias for this home, optional data field. |
enum index |
ActionType |
0 |
ADD |
1 |
DELETE |
Search API sample code synchronously using execute() method
You can also call API asynchronously using asyncCall() method of builder if no need to cancel the request.
Response example
| {
"code": "SUCCESS",
"message": "SendEventResponse Success",
"response_time": 1
}
|
Set Work Event
Set work event should be sent by HMI when user adds/removes work address, user can add/remove by setting ActionType as ADD/DELETE.
Key methods
Method |
Details |
setEntityId(String entity_id) |
The EntityId address/POI, mandatory data field. |
setLat(Double lat) |
Set to raw latitude, mandatory data field. |
setLon(Double lon) |
Set to raw longitude, mandatory data field. |
setActionType(ActionType action) |
ActionType as ADD/DELETE when user add/remove work address, mandatory data field. |
setLabel(String label) |
For the name alias for this work, optional data field. |
enum index |
ActionType |
0 |
ADD |
1 |
DELETE |
Search API sample code synchronously using execute() method
You can also call API asynchronously using asyncCall() method of builder if no need to cancel the request.
Response example
| {
"code": "SUCCESS",
"message": "SendEventResponse Success",
"response_time": 1
}
|