btcpayserver/BTCPayServer.Client/Models/ApplicationUserData.cs

42 lines
1.1 KiB
C#
Raw Normal View History

using System;
using Newtonsoft.Json;
namespace BTCPayServer.Client.Models
{
public class ApplicationUserData
{
/// <summary>
/// the id of the user
/// </summary>
public string Id { get; set; }
2020-04-30 16:44:27 +02:00
/// <summary>
/// the email AND username of the user
/// </summary>
public string Email { get; set; }
2020-04-30 16:44:27 +02:00
/// <summary>
/// Whether the user has verified their email
/// </summary>
public bool EmailConfirmed { get; set; }
2020-04-30 16:44:27 +02:00
/// <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; }
public bool Disabled { get; set; }
}
}