2014-10-13 20:14:53 +00:00
|
|
|
|
using MediaBrowser.Model.Session;
|
|
|
|
|
using System;
|
2014-10-11 20:38:13 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Devices
|
|
|
|
|
{
|
|
|
|
|
public class DeviceInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2014-10-13 20:14:53 +00:00
|
|
|
|
/// Gets or sets the name of the reported.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the reported.</value>
|
|
|
|
|
public string ReportedName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the custom.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the custom.</value>
|
|
|
|
|
public string CustomName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the camera upload path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The camera upload path.</value>
|
|
|
|
|
public string CameraUploadPath { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the name.
|
2014-10-11 20:38:13 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
2014-10-13 20:14:53 +00:00
|
|
|
|
public string Name
|
|
|
|
|
{
|
2015-10-04 03:38:46 +00:00
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return string.IsNullOrEmpty(CustomName) ? ReportedName : CustomName;
|
|
|
|
|
}
|
2014-10-13 20:14:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-11 20:38:13 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The identifier.</value>
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the last name of the user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The last name of the user.</value>
|
|
|
|
|
public string LastUserName { get; set; }
|
|
|
|
|
/// <summary>
|
2014-10-12 01:46:02 +00:00
|
|
|
|
/// Gets or sets the name of the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the application.</value>
|
|
|
|
|
public string AppName { get; set; }
|
|
|
|
|
/// <summary>
|
2015-03-15 01:42:09 +00:00
|
|
|
|
/// Gets or sets the application version.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The application version.</value>
|
|
|
|
|
public string AppVersion { get; set; }
|
|
|
|
|
/// <summary>
|
2014-10-11 20:38:13 +00:00
|
|
|
|
/// Gets or sets the last user identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The last user identifier.</value>
|
|
|
|
|
public string LastUserId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the date last modified.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The date last modified.</value>
|
|
|
|
|
public DateTime DateLastModified { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the capabilities.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The capabilities.</value>
|
|
|
|
|
public ClientCapabilities Capabilities { get; set; }
|
|
|
|
|
|
|
|
|
|
public DeviceInfo()
|
|
|
|
|
{
|
|
|
|
|
Capabilities = new ClientCapabilities();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|