DeviceInfo.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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
  29. {
  30. return string.IsNullOrEmpty(CustomName) ? ReportedName : CustomName;
  31. }
  32. }
  33. /// <summary>
  34. /// Gets or sets the identifier.
  35. /// </summary>
  36. /// <value>The identifier.</value>
  37. public string Id { get; set; }
  38. /// <summary>
  39. /// Gets or sets the last name of the user.
  40. /// </summary>
  41. /// <value>The last name of the user.</value>
  42. public string LastUserName { get; set; }
  43. /// <summary>
  44. /// Gets or sets the name of the application.
  45. /// </summary>
  46. /// <value>The name of the application.</value>
  47. public string AppName { get; set; }
  48. /// <summary>
  49. /// Gets or sets the application version.
  50. /// </summary>
  51. /// <value>The application version.</value>
  52. public string AppVersion { get; set; }
  53. /// <summary>
  54. /// Gets or sets the last user identifier.
  55. /// </summary>
  56. /// <value>The last user identifier.</value>
  57. public string LastUserId { get; set; }
  58. /// <summary>
  59. /// Gets or sets the date last modified.
  60. /// </summary>
  61. /// <value>The date last modified.</value>
  62. public DateTime DateLastModified { get; set; }
  63. /// <summary>
  64. /// Gets or sets the capabilities.
  65. /// </summary>
  66. /// <value>The capabilities.</value>
  67. public ClientCapabilities Capabilities { get; set; }
  68. public DeviceInfo()
  69. {
  70. Capabilities = new ClientCapabilities();
  71. }
  72. }
  73. }