Alexa Auto SDK
4.3
|
Public Member Functions | |
virtual bool | addName (const std::string &entryId, const std::string &name)=0 |
virtual bool | addName (const std::string &entryId, const std::string &firstName, const std::string &lastName)=0 |
virtual bool | addName (const std::string &entryId, const std::string &firstName, const std::string &lastName, const std::string &nickname, const std::string &phoneticFirstName="", const std::string &phoneticLastName="")=0 |
virtual bool | addPhone (const std::string &entryId, const std::string &label, const std::string &number)=0 |
virtual bool | addPostalAddress (const std::string &entryId, const std::string &label, const std::string &addressLine1, const std::string &addressLine2, const std::string &addressLine3, const std::string &city, const std::string &stateOrRegion, const std::string &districtOrCounty, const std::string &postalCode, const std::string &country, float latitudeInDegrees, float longitudeInDegrees, float accuracyInMeters)=0 |
virtual bool | addEntry (const std::string &payload)=0 |
Factory class for ingesting the AddressBook Entries.
|
pure virtual |
Add name.
addEntry()
instead.[in] | entryId | A unique identifier of entry in an address book. |
[in] | name | Name of the entry, or an empty string if not available. |
true
on successful or false
when name for the id was already added or if entryId is empty.
|
pure virtual |
Add first and last name.
addEntry()
instead.[in] | entryId | A unique identifier of entry in an address book. |
[in] | firstName | First name of the entry, or an empty string if not available. |
[in] | lastName | Last name of the entry, or an empty string if not available. |
true
on successful or false
when name for the id was already added or if entryId is empty.
|
pure virtual |
Add first name, last name, nickname, and phonetics.
addEntry()
instead.[in] | entryId | A unique identifier of entry in an address book. |
[in] | firstName | First name of the entry, or an empty string if not available. |
[in] | lastName | Last name of the entry, or an empty string if not available. |
[in] | nickname | Nickname of the entry, or an empty string if not available. |
[in] | phoneticFirstName | The phonetic first name of the entry, or an empty string if not available. |
[in] | phoneticLastName | The phonetic last name of the entry, or an empty string if not available. |
true
if successful or false
when the entryId is empty or already used.
|
pure virtual |
Add phone number(s).
addEntry()
instead.[in] | entryId | A unique identifier of entry in an address book. |
[in] | label | Alphanumeric phone label (e.g., Home, Mobile, Work), or an empty string if not available. |
[in] | number | Numeric phone number, or an empty string if not available. |
true
on successful or false
when reached the max allowed per entryId or if entryId is empty.
|
pure virtual |
Add postal address(es).
addEntry()
instead.[in] | entryId | A unique identifier of entry in an address book. |
[in] | label | Alphanumeric postal address label (e.g., Home, Work), or an empty string if not available. |
[in] | addressLine1 | First line of the postal address, or an empty string if not available. |
[in] | addressLine2 | Second line of the postal address, or an empty string if not available. |
[in] | addressLine3 | Third line of the postal address, or an empty string if not available. |
[in] | city | City name, or an empty string if not available. |
[in] | stateOrRegion | State or Region name, or an empty string if not available. |
[in] | districtOrCounty | District or County name, or an empty string if not available. |
[in] | postalCode | Postal code or Zip code, or an empty string if not available. |
[in] | country | Country name, or an empty string if not available. |
[in] | latitudeInDegrees | Geo latitude in degrees. |
[in] | longitudeInDegrees | Geo longitude in degrees. |
[in] | accuracyInMeters | Accuracy in meters, or zero if not available. |
true
on successful or false
when reached the max allowed per id or if entryId is empty.
|
pure virtual |
Add name, phone number and postal address of an entry in the address book
payload | The address book entry data in JSON format. |
true
if successful or false
when the input validation fails.false
from addEntry()
and discards the entire entry.false
from addEntry()
and discards the entry.false
from addEntry()
as a warning, uses the rest of the entry, and discards the element exceeding the limit.false
from addEntry()
as a warning and uses the first 30 elements.AddressBookType::CONTACT
. Similarly, the Engine ignores the "phoneNumbers" node while ingesting entries for the address book type AddressBookType::NAVIGATION
.Alexa Auto SDK 4.3 - Copyright 2017-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0