2020-01-22 15:00:07 -05:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
#pragma warning disable SA1600
|
|
|
|
|
2019-01-13 14:54:44 -05:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 14:16:19 -05:00
|
|
|
using Emby.Dlna.Common;
|
2016-10-29 18:22:20 -04:00
|
|
|
using MediaBrowser.Model.Dlna;
|
|
|
|
|
2016-10-29 18:34:54 -04:00
|
|
|
namespace Emby.Dlna.PlayTo
|
2016-10-29 18:22:20 -04:00
|
|
|
{
|
|
|
|
public class DeviceInfo
|
|
|
|
{
|
|
|
|
public DeviceInfo()
|
|
|
|
{
|
|
|
|
Name = "Generic Device";
|
|
|
|
}
|
|
|
|
|
|
|
|
public string UUID { get; set; }
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
public string ModelName { get; set; }
|
|
|
|
|
|
|
|
public string ModelNumber { get; set; }
|
|
|
|
|
|
|
|
public string ModelDescription { get; set; }
|
|
|
|
|
|
|
|
public string ModelUrl { get; set; }
|
|
|
|
|
|
|
|
public string Manufacturer { get; set; }
|
|
|
|
|
|
|
|
public string SerialNumber { get; set; }
|
|
|
|
|
|
|
|
public string ManufacturerUrl { get; set; }
|
|
|
|
|
|
|
|
public string PresentationUrl { get; set; }
|
|
|
|
|
|
|
|
private string _baseUrl = string.Empty;
|
|
|
|
public string BaseUrl
|
|
|
|
{
|
2019-01-13 15:31:14 -05:00
|
|
|
get => _baseUrl;
|
|
|
|
set => _baseUrl = value;
|
2016-10-29 18:22:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public DeviceIcon Icon { get; set; }
|
|
|
|
|
|
|
|
private readonly List<DeviceService> _services = new List<DeviceService>();
|
2019-01-13 15:31:14 -05:00
|
|
|
public List<DeviceService> Services => _services;
|
2016-10-29 18:22:20 -04:00
|
|
|
|
|
|
|
public DeviceIdentification ToDeviceIdentification()
|
|
|
|
{
|
|
|
|
return new DeviceIdentification
|
|
|
|
{
|
|
|
|
Manufacturer = Manufacturer,
|
|
|
|
ModelName = ModelName,
|
|
|
|
ModelNumber = ModelNumber,
|
|
|
|
FriendlyName = Name,
|
|
|
|
ManufacturerUrl = ManufacturerUrl,
|
|
|
|
ModelUrl = ModelUrl,
|
|
|
|
ModelDescription = ModelDescription,
|
|
|
|
SerialNumber = SerialNumber
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|