DeviceInfo.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 last user identifier.
  47. /// </summary>
  48. /// <value>The last user identifier.</value>
  49. public string LastUserId { get; set; }
  50. /// <summary>
  51. /// Gets or sets the date last modified.
  52. /// </summary>
  53. /// <value>The date last modified.</value>
  54. public DateTime DateLastModified { get; set; }
  55. /// <summary>
  56. /// Gets or sets the capabilities.
  57. /// </summary>
  58. /// <value>The capabilities.</value>
  59. public ClientCapabilities Capabilities { get; set; }
  60. public DeviceInfo()
  61. {
  62. Capabilities = new ClientCapabilities();
  63. }
  64. }
  65. }