2014-03-13 12:08:02 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Dlna.PlayTo
|
|
|
|
|
{
|
|
|
|
|
public class DeviceInfo
|
|
|
|
|
{
|
2014-03-13 13:57:59 -07:00
|
|
|
|
public DeviceInfo()
|
|
|
|
|
{
|
|
|
|
|
ClientType = "DLNA";
|
|
|
|
|
Name = "Generic Device";
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-13 12:08:02 -07:00
|
|
|
|
public string UUID { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ClientType { get; set; }
|
|
|
|
|
|
2014-03-13 13:57:59 -07:00
|
|
|
|
private string _displayName = string.Empty;
|
|
|
|
|
public string DisplayName
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return string.IsNullOrEmpty(_displayName) ? Name : _displayName;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_displayName = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-03-13 12:08:02 -07:00
|
|
|
|
|
|
|
|
|
public string ModelName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ModelNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Manufacturer { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ManufacturerUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
public string PresentationUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
private string _baseUrl = string.Empty;
|
|
|
|
|
public string BaseUrl
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _baseUrl;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_baseUrl = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public uIcon Icon { get; set; }
|
|
|
|
|
|
|
|
|
|
private readonly List<DeviceService> _services = new List<DeviceService>();
|
|
|
|
|
public List<DeviceService> Services
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _services;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|