1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 17:48:31 +00:00
RGB.NET/RGB.NET.Devices.SoIP/Client/SoIPClientRGBDeviceInfo.cs
2018-07-10 20:06:38 +02:00

60 lines
1.5 KiB
C#

using System;
using RGB.NET.Core;
namespace RGB.NET.Devices.SoIP.Client
{
/// <inheritdoc />
/// <summary>
/// Represents device information for a <see cref="SoIPClientRGBDevice"/> />.
/// </summary>
public class SoIPClientRGBDeviceInfo : IRGBDeviceInfo
{
#region Properties & Fields
/// <inheritdoc />
public object DeviceId => $"{Hostname}:{Port}";
/// <inheritdoc />
public RGBDeviceType DeviceType => RGBDeviceType.Unknown;
/// <inheritdoc />
public string Manufacturer { get; }
/// <inheritdoc />
public string Model { get; }
/// <inheritdoc />
public RGBDeviceLighting Lighting => RGBDeviceLighting.None;
/// <inheritdoc />
public bool SupportsSyncBack => true;
/// <inheritdoc />
public Uri Image { get; set; }
/// <summary>
/// The hostname of the device.
/// </summary>
public string Hostname { get; }
/// <summary>
/// The port of the device.
/// </summary>
public int Port { get; }
#endregion
#region Constructors
internal SoIPClientRGBDeviceInfo(SoIPClientDeviceDefinition deviceDefinition)
{
this.Manufacturer = deviceDefinition.Manufacturer;
this.Model = deviceDefinition.Model;
this.Hostname = deviceDefinition.Hostname;
this.Port = deviceDefinition.Port;
}
#endregion
}
}