using System; using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Users; namespace MediaBrowser.Model.Dto { /// /// Class PublicUserDto. Its goal is to show only public information about a user /// public class PublicUserDto : IItemDto { /// /// Gets or sets the name. /// /// The name. public string Name { get; set; } /// /// Gets or sets the primary image tag. /// /// The primary image tag. public string PrimaryImageTag { get; set; } /// /// Gets or sets a value indicating whether this instance has password. /// /// true if this instance has password; otherwise, false. public bool HasPassword { get; set; } /// /// Gets or sets a value indicating whether this instance has configured password. /// /// true if this instance has configured password; otherwise, false. // FIXME this shouldn't be here, but it's necessary when changing password at the first login public bool HasConfiguredPassword { get; set; } /// /// Gets or sets the primary image aspect ratio. /// /// The primary image aspect ratio. public double? PrimaryImageAspectRatio { get; set; } /// public override string ToString() { return Name ?? base.ToString(); } } }