DeviceInfo.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using MediaBrowser.Model.Session;
  2. using System;
  3. namespace MediaBrowser.Model.Devices
  4. {
  5. public class DeviceInfo
  6. {
  7. /// <summary>
  8. /// Gets or sets the name of the reported.
  9. /// </summary>
  10. /// <value>The name of the reported.</value>
  11. public string ReportedName { get; set; }
  12. /// <summary>
  13. /// Gets or sets the name of the custom.
  14. /// </summary>
  15. /// <value>The name of the custom.</value>
  16. public string CustomName { get; set; }
  17. /// <summary>
  18. /// Gets or sets the camera upload path.
  19. /// </summary>
  20. /// <value>The camera upload path.</value>
  21. public string CameraUploadPath { get; set; }
  22. /// <summary>
  23. /// Gets the name.
  24. /// </summary>
  25. /// <value>The name.</value>
  26. public string Name
  27. {
  28. get { return string.IsNullOrEmpty(CustomName) ? ReportedName : CustomName; }
  29. }
  30. /// <summary>
  31. /// Gets or sets the identifier.
  32. /// </summary>
  33. /// <value>The identifier.</value>
  34. public string Id { get; set; }
  35. /// <summary>
  36. /// Gets or sets the last name of the user.
  37. /// </summary>
  38. /// <value>The last name of the user.</value>
  39. public string LastUserName { get; set; }
  40. /// <summary>
  41. /// Gets or sets the name of the application.
  42. /// </summary>
  43. /// <value>The name of the application.</value>
  44. public string AppName { get; set; }
  45. /// <summary>
  46. /// Gets or sets the application version.
  47. /// </summary>
  48. /// <value>The application version.</value>
  49. public string AppVersion { get; set; }
  50. /// <summary>
  51. /// Gets or sets the last user identifier.
  52. /// </summary>
  53. /// <value>The last user identifier.</value>
  54. public string LastUserId { get; set; }
  55. /// <summary>
  56. /// Gets or sets the date last modified.
  57. /// </summary>
  58. /// <value>The date last modified.</value>
  59. public DateTime DateLastModified { get; set; }
  60. /// <summary>
  61. /// Gets or sets the capabilities.
  62. /// </summary>
  63. /// <value>The capabilities.</value>
  64. public ClientCapabilities Capabilities { get; set; }
  65. public DeviceInfo()
  66. {
  67. Capabilities = new ClientCapabilities();
  68. }
  69. }
  70. }