2020-10-03 14:12:55 +02:00
|
|
|
using System;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
2020-03-12 14:59:24 +01:00
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class ApplicationUserData
|
|
|
|
{
|
2020-03-13 11:47:22 +01:00
|
|
|
/// <summary>
|
|
|
|
/// the id of the user
|
|
|
|
/// </summary>
|
2020-03-12 14:59:24 +01:00
|
|
|
public string Id { get; set; }
|
2020-04-30 16:44:27 +02:00
|
|
|
|
2020-03-13 11:47:22 +01:00
|
|
|
/// <summary>
|
|
|
|
/// the email AND username of the user
|
|
|
|
/// </summary>
|
2020-03-12 14:59:24 +01:00
|
|
|
public string Email { get; set; }
|
2020-04-30 16:44:27 +02:00
|
|
|
|
2020-03-13 11:47:22 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Whether the user has verified their email
|
|
|
|
/// </summary>
|
|
|
|
public bool EmailConfirmed { get; set; }
|
2020-04-30 16:44:27 +02:00
|
|
|
|
2020-03-13 11:47:22 +01:00
|
|
|
/// <summary>
|
|
|
|
/// whether the user needed to verify their email on account creation
|
|
|
|
/// </summary>
|
|
|
|
public bool RequiresEmailConfirmation { get; set; }
|
2020-09-16 14:17:33 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// the roles of the user
|
|
|
|
/// </summary>
|
|
|
|
public string[] Roles { get; set; }
|
2020-10-03 14:12:55 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// the date the user was created. Null if created before v1.0.5.6.
|
|
|
|
/// </summary>
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset? Created { get; set; }
|
2022-04-26 14:27:35 +02:00
|
|
|
|
|
|
|
public bool Disabled { get; set; }
|
2020-03-13 11:47:22 +01:00
|
|
|
}
|
2020-03-12 14:59:24 +01:00
|
|
|
}
|