You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/PlexRequests.UI/Models/UserManagementUsersViewMode...

62 lines
1.7 KiB

9 years ago
using System.Collections.Generic;
using Newtonsoft.Json;
9 years ago
namespace PlexRequests.UI.Models
{
9 years ago
public class UserManagementUsersViewModel
{
9 years ago
public UserManagementUsersViewModel()
{
PlexInfo = new UserManagementPlexInformation();
}
9 years ago
public string Username { get; set; }
public string Claims { get; set; }
9 years ago
public string Id { get; set; }
9 years ago
public string Alias { get; set; }
public UserType Type { get; set; }
public string EmailAddress { get; set; }
9 years ago
public UserManagementPlexInformation PlexInfo { get; set; }
8 years ago
public string[] ClaimsArray { get; set; }
9 years ago
}
public class UserManagementPlexInformation
{
public UserManagementPlexInformation()
{
Servers = new List<UserManagementPlexServers>();
}
public string Thumb { get; set; }
public List<UserManagementPlexServers> Servers { get; set; }
}
public class UserManagementPlexServers
{
public int Id { get; set; }
public string ServerId { get; set; }
public string MachineIdentifier { get; set; }
public string Name { get; set; }
public string LastSeenAt { get; set; }
public string NumLibraries { get; set; }
9 years ago
}
9 years ago
public enum UserType
{
PlexUser,
LocalUser
}
public class UserManagementCreateModel
{
[JsonProperty("username")]
public string Username { get; set; }
[JsonProperty("password")]
public string Password { get; set; }
[JsonProperty("claims")]
public string[] Claims { get; set; }
[JsonProperty("email")]
public string EmailAddress { get; set; }
}
}