mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-22 00:22:18 -05:00
32 lines
677 B
C#
32 lines
677 B
C#
namespace ColorControl.Shared.Contracts.Base;
|
|
|
|
public abstract class BaseDeviceDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string IpAddress { get; set; }
|
|
public string MacAddress { get; set; }
|
|
public bool IsCustom { get; set; }
|
|
public string Token { get; set; }
|
|
|
|
public bool IsDummy { get; set; }
|
|
|
|
public bool PoweredOn { get; set; }
|
|
|
|
public DateTimeOffset PoweredOffAt { get; set; }
|
|
|
|
public bool IsConnected { get; set; }
|
|
|
|
public bool IsSelected { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
if (IpAddress != null)
|
|
{
|
|
return $"{Name} ({IpAddress})";
|
|
}
|
|
|
|
return Name;
|
|
}
|
|
}
|
|
|