2014-04-10 15:06:54 +00:00
|
|
|
|
using MediaBrowser.Dlna.Common;
|
2014-04-01 22:23:07 +00:00
|
|
|
|
using MediaBrowser.Model.Dlna;
|
2014-04-10 15:06:54 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-03-13 19:08:02 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Dlna.PlayTo
|
|
|
|
|
{
|
|
|
|
|
public class DeviceInfo
|
|
|
|
|
{
|
2014-03-13 20:57:59 +00:00
|
|
|
|
public DeviceInfo()
|
|
|
|
|
{
|
|
|
|
|
ClientType = "DLNA";
|
|
|
|
|
Name = "Generic Device";
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-13 19:08:02 +00:00
|
|
|
|
public string UUID { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ClientType { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ModelName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ModelNumber { get; set; }
|
|
|
|
|
|
2014-03-25 05:25:03 +00:00
|
|
|
|
public string ModelDescription { get; set; }
|
|
|
|
|
|
2014-03-24 07:47:23 +00:00
|
|
|
|
public string ModelUrl { get; set; }
|
|
|
|
|
|
2014-03-13 19:08:02 +00:00
|
|
|
|
public string Manufacturer { get; set; }
|
|
|
|
|
|
2014-03-25 05:25:03 +00:00
|
|
|
|
public string SerialNumber { get; set; }
|
|
|
|
|
|
2014-03-13 19:08:02 +00:00
|
|
|
|
public string ManufacturerUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
public string PresentationUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
private string _baseUrl = string.Empty;
|
|
|
|
|
public string BaseUrl
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _baseUrl;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_baseUrl = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-01 22:23:07 +00:00
|
|
|
|
public DeviceIcon Icon { get; set; }
|
2014-03-13 19:08:02 +00:00
|
|
|
|
|
|
|
|
|
private readonly List<DeviceService> _services = new List<DeviceService>();
|
|
|
|
|
public List<DeviceService> Services
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _services;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-03-17 14:48:16 +00:00
|
|
|
|
|
|
|
|
|
public DeviceIdentification ToDeviceIdentification()
|
|
|
|
|
{
|
|
|
|
|
return new DeviceIdentification
|
|
|
|
|
{
|
|
|
|
|
Manufacturer = Manufacturer,
|
|
|
|
|
ModelName = ModelName,
|
|
|
|
|
ModelNumber = ModelNumber,
|
|
|
|
|
FriendlyName = Name,
|
2014-03-24 07:47:23 +00:00
|
|
|
|
ManufacturerUrl = ManufacturerUrl,
|
2014-03-25 05:25:03 +00:00
|
|
|
|
ModelUrl = ModelUrl,
|
|
|
|
|
ModelDescription = ModelDescription,
|
|
|
|
|
SerialNumber = SerialNumber
|
2014-03-17 14:48:16 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
2014-03-13 19:08:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|