2020-10-03 14:12:55 +02:00
|
|
|
using System;
|
2017-09-15 18:15:17 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.ServerViewModels
|
|
|
|
{
|
2021-12-31 08:59:02 +01:00
|
|
|
public class UsersViewModel : BasePagingViewModel
|
2017-09-15 18:15:17 +02:00
|
|
|
{
|
2017-10-27 10:53:04 +02:00
|
|
|
public class UserViewModel
|
|
|
|
{
|
2017-12-04 06:39:02 +01:00
|
|
|
public string Id { get; set; }
|
2019-07-19 09:50:17 +02:00
|
|
|
public string Name { get; set; }
|
|
|
|
public string Email { get; set; }
|
2020-10-03 14:12:55 +02:00
|
|
|
public bool Verified { get; set; }
|
|
|
|
public bool IsAdmin { get; set; }
|
|
|
|
public DateTimeOffset? Created { get; set; }
|
2021-11-15 10:27:19 +01:00
|
|
|
public IEnumerable<string> Roles { get; set; }
|
2017-10-27 10:53:04 +02:00
|
|
|
}
|
2019-07-19 09:50:17 +02:00
|
|
|
public List<UserViewModel> Users { get; set; } = new List<UserViewModel>();
|
2021-11-15 10:27:19 +01:00
|
|
|
public Dictionary<string, string> Roles { get; set; }
|
2017-10-27 10:53:04 +02:00
|
|
|
}
|
2017-09-15 18:15:17 +02:00
|
|
|
|
|
|
|
}
|