22#ifndef INCLUDE_HUEPLUSPLUS_NEW_DEVICE_LIST_H
23#define INCLUDE_HUEPLUSPLUS_NEW_DEVICE_LIST_H
30#include <nlohmann/json.hpp>
39 NewDeviceList(
const std::string& lastScan,
const std::map<int, std::string>& devices);
65 std::map<int, std::string> devices;
time::AbsoluteTime getLastScanTime() const
Get time when last scan was completed.
Definition NewDeviceList.cpp:41
static NewDeviceList parse(const nlohmann::json &json)
Parse from json response.
Definition NewDeviceList.cpp:45
bool hasLastScanTime() const
Get whether a last scan time is available.
Definition NewDeviceList.cpp:33
NewDeviceList(const std::string &lastScan, const std::map< int, std::string > &devices)
Construct from data.
Definition NewDeviceList.cpp:26
bool isScanActive()
Get whether scan is currently active.
Definition NewDeviceList.cpp:37
const std::map< int, std::string > & getNewDevices() const
Get a map of id and name of new devices.
Definition NewDeviceList.cpp:29
One-time, absolute time point.
Definition TimePattern.h:73
Namespace for the hueplusplus library.
Definition Action.h:28