Class UserViewModel
View model for the user entity
Inheritance
System.Object
UserViewModel
Implements
Namespace: Simplic.User.UI
Assembly: Simplic.User.UI.dll
Syntax
public class UserViewModel : ViewModelBase, IDraggableUser
Constructors
| Improve this Doc View SourceUserViewModel()
Default constructor for the entity
Declaration
public UserViewModel()
UserViewModel(User)
Copy constructor
Declaration
public UserViewModel(User user)
Parameters
Type | Name | Description |
---|---|---|
User | user |
Properties
| Improve this Doc View SourceApiKey
API key
Declaration
public string ApiKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
User email
Declaration
public string Email { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FirstName
User first name
Declaration
public string FirstName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Groups
User groups collection
Declaration
public ObservableCollection<GroupViewModel> Groups { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<GroupViewModel> |
IsActive
User active flag
Declaration
public bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsADUser
User AD flag
Declaration
public bool IsADUser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
KeepLoggedIn
Keep logged in flag
Declaration
public bool KeepLoggedIn { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LanguageID
Language Id
Declaration
public int LanguageID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LastName
User last name
Declaration
public string LastName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Organizations
User organizatiobs collection
Declaration
public ObservableCollection<OrganizationViewModel> Organizations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<OrganizationViewModel> |
Password
User password
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Phone
User phone
Declaration
public string Phone { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RemoveGroupCommand
Remove group command
Declaration
public ICommand RemoveGroupCommand { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
RemoveOrganizationCommand
Remove organization command
Declaration
public ICommand RemoveOrganizationCommand { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
User
Current user
Declaration
public User User { get; set; }
Property Value
Type | Description |
---|---|
User |
UserId
User Id
Declaration
public int UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UserName
User name
Declaration
public string UserName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceJoin(ViewModelBase)
Joining user to a group or organization. Inherited from IDraggableUser
Declaration
public void Join(ViewModelBase vm)
Parameters
Type | Name | Description |
---|---|---|
ViewModelBase | vm |
SaveAll()
Save user group and tenants changes
Declaration
public void SaveAll()
SavePassword()
Save user password
Declaration
public void SavePassword()
SaveUser()
Save user
Declaration
public void SaveUser()