|
hueplusplus 1.2.0
|
Handles a ResourceList where Resources can be added by the user. More...
#include <hueplusplus/ResourceList.h>
Inheritance diagram for hueplusplus::CreateableResourceList< BaseResourceList, CreateType >:
Collaboration diagram for hueplusplus::CreateableResourceList< BaseResourceList, CreateType >:Public Member Functions | |
| BaseResourceList::IdType | create (const CreateType ¶ms) |
| Create a new resource. | |
Protected Member Functions | |
| CreateableResourceList (CreateableResourceList &&)=default | |
| Protected defaulted move constructor. | |
| CreateableResourceList & | operator= (CreateableResourceList &&)=default |
| Protected defaulted move assignment. | |
Handles a ResourceList where Resources can be added by the user.
| BaseResourceList | Base resource list type (ResourceList or SearchableResourceList). |
| CreateType | Type that provides parameters for creation. Must have a const getRequest() function returning the JSON for the POST request. |
|
protecteddefault |
Protected defaulted move constructor.
|
inline |
Create a new resource.
| params | Parameters for the new resource |
| std::system_error | when system or socket operations fail |
| HueException | when response contains no body |
| HueAPIResponseException | when response contains an error |
| nlohmann::json::parse_error | when response could not be parsed |
| std::invalid_argument | when IdType is int and std::stoi fails |
|
protecteddefault |
Protected defaulted move assignment.