mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
Account switching
This commit is contained in:
31
src/App/Controls/AccountViewCell/AccountViewCellViewModel.cs
Normal file
31
src/App/Controls/AccountViewCell/AccountViewCellViewModel.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Bit.Core.Models.View;
|
||||
using Bit.Core.Utilities;
|
||||
|
||||
namespace Bit.App.Controls
|
||||
{
|
||||
public class AccountViewCellViewModel : ExtendedViewModel
|
||||
{
|
||||
private AccountView _account;
|
||||
|
||||
public AccountViewCellViewModel(AccountView accountView)
|
||||
{
|
||||
Account = accountView;
|
||||
}
|
||||
|
||||
public AccountView Account
|
||||
{
|
||||
get => _account;
|
||||
set => SetProperty(ref _account, value);
|
||||
}
|
||||
|
||||
public bool IsAccount
|
||||
{
|
||||
get => Account.IsAccount;
|
||||
}
|
||||
|
||||
public string AuthStatusText
|
||||
{
|
||||
get => Account.AuthStatus.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user