mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class ApplicationUserData
|
|
{
|
|
/// <summary>
|
|
/// the id of the user
|
|
/// </summary>
|
|
public string Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// the email AND username of the user
|
|
/// </summary>
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// Whether the user has verified their email
|
|
/// </summary>
|
|
public bool EmailConfirmed { get; set; }
|
|
|
|
/// <summary>
|
|
/// whether the user needed to verify their email on account creation
|
|
/// </summary>
|
|
public bool RequiresEmailConfirmation { get; set; }
|
|
|
|
/// <summary>
|
|
/// the roles of the user
|
|
/// </summary>
|
|
public string[] Roles { get; set; }
|
|
|
|
/// <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; }
|
|
}
|
|
}
|