mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
18 lines
326 B
C#
18 lines
326 B
C#
namespace Service;
|
|
|
|
public class Device
|
|
{
|
|
public string Name { get; }
|
|
public bool Status { get; set; }
|
|
|
|
public Device(string name, string statusString)
|
|
{
|
|
Name = name;
|
|
Update(statusString);
|
|
}
|
|
|
|
public void Update(string statusString)
|
|
{
|
|
Status = statusString == "1";
|
|
}
|
|
} |