From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Model/Dto/UserDto.cs | 125 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 MediaBrowser.Model/Dto/UserDto.cs (limited to 'MediaBrowser.Model/Dto/UserDto.cs') diff --git a/MediaBrowser.Model/Dto/UserDto.cs b/MediaBrowser.Model/Dto/UserDto.cs new file mode 100644 index 0000000000..f42c495ad8 --- /dev/null +++ b/MediaBrowser.Model/Dto/UserDto.cs @@ -0,0 +1,125 @@ +using MediaBrowser.Model.Configuration; +using MediaBrowser.Model.Connect; +using MediaBrowser.Model.Users; +using System; +using MediaBrowser.Model.Serialization; + +namespace MediaBrowser.Model.Dto +{ + /// + /// Class UserDto + /// + public class UserDto : IItemDto, IHasServerId + { + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } + + /// + /// Gets or sets the server identifier. + /// + /// The server identifier. + public string ServerId { get; set; } + + /// + /// Gets or sets the name of the server. + /// This is not used by the server and is for client-side usage only. + /// + /// The name of the server. + public string ServerName { get; set; } + + /// + /// Gets or sets the name of the connect user. + /// + /// The name of the connect user. + public string ConnectUserName { get; set; } + /// + /// Gets or sets the connect user identifier. + /// + /// The connect user identifier. + public string ConnectUserId { get; set; } + /// + /// Gets or sets the type of the connect link. + /// + /// The type of the connect link. + public UserLinkType? ConnectLinkType { get; set; } + + /// + /// Gets or sets the id. + /// + /// The id. + public Guid Id { 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. + public bool HasConfiguredPassword { get; set; } + + /// + /// Gets or sets a value indicating whether this instance has configured easy password. + /// + /// true if this instance has configured easy password; otherwise, false. + public bool HasConfiguredEasyPassword { get; set; } + + public bool? EnableAutoLogin { get; set; } + + /// + /// Gets or sets the last login date. + /// + /// The last login date. + public DateTime? LastLoginDate { get; set; } + + /// + /// Gets or sets the last activity date. + /// + /// The last activity date. + public DateTime? LastActivityDate { get; set; } + + /// + /// Gets or sets the configuration. + /// + /// The configuration. + public UserConfiguration Configuration { get; set; } + + /// + /// Gets or sets the policy. + /// + /// The policy. + public UserPolicy Policy { get; set; } + + /// + /// Gets or sets the primary image aspect ratio. + /// + /// The primary image aspect ratio. + public double? PrimaryImageAspectRatio { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public UserDto() + { + Configuration = new UserConfiguration(); + Policy = new UserPolicy(); + } + + public override string ToString() + { + return Name ?? base.ToString(); + } + } +} -- cgit v1.2.3