PublicUserDto.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. namespace MediaBrowser.Model.Dto
  3. {
  4. /// <summary>
  5. /// Class PublicUserDto. Its goal is to show only public information about a user
  6. /// </summary>
  7. public class PublicUserDto : IItemDto
  8. {
  9. /// <summary>
  10. /// Gets or sets the name.
  11. /// </summary>
  12. /// <value>The name.</value>
  13. public string Name { get; set; }
  14. /// <summary>
  15. /// Gets or sets the primary image tag.
  16. /// </summary>
  17. /// <value>The primary image tag.</value>
  18. public string PrimaryImageTag { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether this instance has password.
  21. /// </summary>
  22. /// <value><c>true</c> if this instance has password; otherwise, <c>false</c>.</value>
  23. public bool HasPassword { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether this instance has configured password.
  26. /// Note that in this case this method should not be here, but it is necessary when changing password at the
  27. /// first login.
  28. /// </summary>
  29. /// <value><c>true</c> if this instance has configured password; otherwise, <c>false</c>.</value>
  30. public bool HasConfiguredPassword { get; set; }
  31. /// <summary>
  32. /// Gets or sets the primary image aspect ratio.
  33. /// </summary>
  34. /// <value>The primary image aspect ratio.</value>
  35. public double? PrimaryImageAspectRatio { get; set; }
  36. /// <inheritdoc />
  37. public override string ToString()
  38. {
  39. return Name ?? base.ToString();
  40. }
  41. }
  42. }