1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00
RGB.NET/RGB.NET.Devices.SoIP/Server/SoIPServerRGBDeviceInfo.cs
2018-07-10 20:59:52 +02:00

56 lines
1.3 KiB
C#

using System;
using RGB.NET.Core;
namespace RGB.NET.Devices.SoIP.Server
{
/// <inheritdoc />
/// <summary>
/// Represents device information for a <see cref="SoIPServerRGBDevice"/> />.
/// </summary>
public class SoIPServerRGBDeviceInfo : IRGBDeviceInfo
{
#region Properties & Fields
/// <inheritdoc />
public RGBDeviceType DeviceType => RGBDeviceType.Unknown;
/// <inheritdoc />
public string DeviceName { get; }
/// <inheritdoc />
public string Manufacturer { get; }
/// <inheritdoc />
public string Model { get; }
/// <inheritdoc />
public RGBDeviceLighting Lighting => RGBDeviceLighting.Key;
/// <inheritdoc />
public bool SupportsSyncBack => false;
/// <inheritdoc />
public Uri Image { get; set; }
/// <summary>
/// The port of the device.
/// </summary>
public int Port { get; }
#endregion
#region Constructors
internal SoIPServerRGBDeviceInfo(SoIPServerDeviceDefinition deviceDefinition)
{
this.Manufacturer = deviceDefinition.Manufacturer;
this.Model = deviceDefinition.Model;
this.Port = deviceDefinition.Port;
DeviceName = $"{Manufacturer} {Model}";
}
#endregion
}
}