Update Naming and Tests
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef DEVICE_DEVICE_H
|
||||
#define DEVICE_DEVICE_H
|
||||
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace PresenceDetection {
|
||||
namespace Device {
|
||||
|
||||
class Device
|
||||
{
|
||||
public:
|
||||
Device(int id, const std::string& wifiMacAddress, const std::string& bluetoothAddress);
|
||||
~Device();
|
||||
|
||||
Device(const Device& other);
|
||||
|
||||
int ID() const;
|
||||
std::string WifiMacAddress() const;
|
||||
std::string BluetoothMacAddress() const;
|
||||
|
||||
bool Online() const;
|
||||
void Online(bool online);
|
||||
|
||||
private:
|
||||
int m_id;
|
||||
std::string m_wifiMacAddress;
|
||||
std::string m_bluetoothMacAddress;
|
||||
|
||||
mutable std::mutex m_mutex;
|
||||
bool m_online;
|
||||
};
|
||||
|
||||
} // namespace Device
|
||||
} // namespace PresenceDetection
|
||||
|
||||
#endif // DEVICE_DEVICE_H
|
||||
Reference in New Issue
Block a user