![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <SuccessResult.h>
Public Member Functions | |
SuccessResult (bool succeeded, TValue value) | |
bool | isSucceeded () |
![]() | |
Result (bool status, TValue value) | |
Result (bool status) | |
bool | status () |
TValue & | value () |
Static Public Member Functions | |
static SuccessResult< TValue > | success (TValue value) |
static SuccessResult< TValue > | failure () |
Protected Member Functions | |
SuccessResult (bool succeeded) | |
Version of Result
class assuming status to be either success or failure.
TValue | Type of the value associated with the result. |
|
inline |
Constructor with both success status and value provided.
succeeded | Success status. True for succes, false for failure. |
value | Value to be associated with the result. |
|
inlineexplicitprotected |
Constructor with only success status provided.
succeeded | Success status. True for success, false for failure. |
|
inlinestatic |
Creates a failed result.
|
inline |
Returns true if result status is succeeded, false otherwise.
|
inlinestatic |
Creates a succeeded result with a value.
value | Value to be associated with the result. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0