using System; using RGB.NET.Core; namespace RGB.NET.Devices.SoIP.Client { /// /// /// Represents device information for a />. /// public class SoIPClientRGBDeviceInfo : IRGBDeviceInfo { #region Properties & Fields /// public RGBDeviceType DeviceType => RGBDeviceType.Unknown; /// public string DeviceName { get; } /// public string Manufacturer { get; } /// public string Model { get; } /// public RGBDeviceLighting Lighting => RGBDeviceLighting.None; /// public bool SupportsSyncBack => true; /// public Uri Image { get; set; } /// /// The hostname of the device. /// public string Hostname { get; } /// /// The port of the device. /// 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; DeviceName = $"{Manufacturer} {Model}"; } #endregion } }