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/Ombi.UI/Models/UserManagement/UserManagementUsersViewMode...

86 lines
2.6 KiB

using System;
using System.Collections.Generic;
using Newtonsoft.Json;
8 years ago
using Ombi.Helpers;
8 years ago
8 years ago
namespace Ombi.UI.Models.UserManagement
{
8 years ago
public class UserManagementUsersViewModel
{
8 years ago
public UserManagementUsersViewModel()
{
PlexInfo = new UserManagementPlexInformation();
8 years ago
Permissions = new List<CheckBox>();
Features = new List<CheckBox>();
8 years ago
}
8 years ago
public string Username { get; set; }
8 years ago
public string FeaturesFormattedString { get; set; }
public string PermissionsFormattedString { get; set; }
8 years ago
public string Id { get; set; }
8 years ago
public string Alias { get; set; }
public UserType Type { get; set; }
public string EmailAddress { get; set; }
8 years ago
public UserManagementPlexInformation PlexInfo { get; set; }
public DateTime LastLoggedIn { get; set; }
8 years ago
public List<CheckBox> Permissions { get; set; }
public List<CheckBox> Features { get; set; }
public bool ManagedUser { get; set; }
8 years ago
}
public class UserManagementPlexInformation
{
public UserManagementPlexInformation()
{
Servers = new List<UserManagementPlexServers>();
}
public string Thumb { get; set; }
public List<UserManagementPlexServers> Servers { get; set; }
}
8 years ago
public class CheckBox
{
public string Name { get; set; }
public int Value { get; set; }
public bool Selected { get; set; }
}
8 years ago
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; }
8 years ago
}
public class UserManagementCreateModel
{
[JsonProperty("username")]
public string Username { get; set; }
[JsonProperty("password")]
public string Password { get; set; }
8 years ago
[JsonProperty("permissions")]
public List<string> Permissions { get; set; }
[JsonProperty("features")]
public List<string> Features { get; set; }
[JsonProperty("email")]
public string EmailAddress { get; set; }
}
public class UserManagementUpdateModel
{
[JsonProperty("id")]
public string Id { get; set; }
8 years ago
[JsonProperty("permissions")]
public List<CheckBox> Permissions { get; set; }
[JsonProperty("features")]
public List<CheckBox> Features { get; set; }
public string Alias { get; set; }
8 years ago
public string EmailAddress { get; set; }
}
}