![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DeviceInfo.h>
Public Member Functions | |
std::string | getClientId () const |
std::string | getProductId () const |
std::string | getDeviceSerialNumber () const |
std::string | getManufacturerName () const |
std::string | getDeviceDescription () const |
std::string | getFriendlyName () const |
std::string | getDeviceType () const |
sdkInterfaces::endpoints::EndpointIdentifier | getDefaultEndpointId () const |
std::string | getRegistrationKey () const |
std::string | getProductIdKey () const |
bool | operator== (const DeviceInfo &rhs) |
bool | operator!= (const DeviceInfo &rhs) |
Static Public Member Functions | |
static std::shared_ptr< DeviceInfo > | createFromConfiguration (const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &configurationRoot) |
static std::unique_ptr< DeviceInfo > | create (const avsCommon::utils::configuration::ConfigurationNode &configurationRoot) |
static std::unique_ptr< DeviceInfo > | create (const std::string &clientId, const std::string &productId, const std::string &deviceSerialNumber, const std::string &manufacturerName, const std::string &description, const std::string &friendlyName="", const std::string &deviceType="", const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier &endpointId="", const std::string ®istrationKey="", const std::string &productIdKey="") |
Class that defines a device's identification information.
|
static |
Create a DeviceInfo.
configurationRoot | The global config object. |
nullptr
.
|
static |
Create a DeviceInfo.
clientId | Client Id. |
productId | Product Id. |
deviceSerialNumber | DSN. |
manufacturerName | The manufacturer name. |
description | The description of the device. |
friendlyName | AVS friendly name for device |
deviceType | The device type. |
registrationKey | The Registration key value. |
productIdKey | The Product Id Key value. |
nullptr
.
|
static |
Create a DeviceInfo.
configurationRoot | The ConfiguratioNode to read device info from. |
nullptr
. std::string alexaClientSDK::avsCommon::utils::DeviceInfo::getClientId | ( | ) | const |
Gets the client Id.
|
inline |
Gets the device default endpoint id.
|
inline |
Gets a description of the device.
std::string alexaClientSDK::avsCommon::utils::DeviceInfo::getDeviceSerialNumber | ( | ) | const |
Gets the device serial number.
std::string alexaClientSDK::avsCommon::utils::DeviceInfo::getDeviceType | ( | ) | const |
Gets the deviceType.
std::string alexaClientSDK::avsCommon::utils::DeviceInfo::getFriendlyName | ( | ) | const |
Gets the device's AVS friendly name.
|
inline |
Gets the device manufacturer name.
std::string alexaClientSDK::avsCommon::utils::DeviceInfo::getProductId | ( | ) | const |
Gets the product Id.
std::string alexaClientSDK::avsCommon::utils::DeviceInfo::getProductIdKey | ( | ) | const |
Gets the product id key value.
std::string alexaClientSDK::avsCommon::utils::DeviceInfo::getRegistrationKey | ( | ) | const |
Gets the device's registration key value.
bool alexaClientSDK::avsCommon::utils::DeviceInfo::operator!= | ( | const DeviceInfo & | rhs | ) |
Operator != for DeviceInfo
rhs | The right hand side of the != operation. |
rhs
are not equivalent. bool alexaClientSDK::avsCommon::utils::DeviceInfo::operator== | ( | const DeviceInfo & | rhs | ) |
Operator == for DeviceInfo
rhs | The right hand side of the == operation. |
rhs
are equivalent. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0