2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Entities;
|
2023-03-02 13:23:38 -05:00
|
|
|
|
using Bit.Core.Vault.Entities;
|
2018-03-23 09:29:11 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Admin.Models;
|
2022-08-29 14:53:16 -04:00
|
|
|
|
|
2018-03-23 09:29:11 -04:00
|
|
|
|
public class UserViewModel
|
2022-08-29 16:06:55 -04:00
|
|
|
|
{
|
2018-03-23 09:29:11 -04:00
|
|
|
|
public UserViewModel() { }
|
2022-08-29 15:53:48 -04:00
|
|
|
|
|
2018-03-23 09:29:11 -04:00
|
|
|
|
public UserViewModel(User user, IEnumerable<Cipher> ciphers)
|
|
|
|
|
|
{
|
|
|
|
|
|
User = user;
|
|
|
|
|
|
CipherCount = ciphers.Count();
|
2022-08-29 15:53:48 -04:00
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2018-03-23 09:29:11 -04:00
|
|
|
|
public User User { get; set; }
|
|
|
|
|
|
public int CipherCount { get; set; }
|
|
|
|
|
|
}
|