using System;
using Newtonsoft.Json;
namespace BTCPayServer.Client.Models
{
public class ApplicationUserData
{
///
/// the id of the user
///
public string Id { get; set; }
///
/// the email AND username of the user
///
public string Email { get; set; }
///
/// Whether the user has verified their email
///
public bool EmailConfirmed { get; set; }
///
/// whether the user needed to verify their email on account creation
///
public bool RequiresEmailConfirmation { get; set; }
///
/// Whether the user was approved by an admin
///
public bool Approved { get; set; }
///
/// whether the user needed approval on account creation
///
public bool RequiresApproval { get; set; }
///
/// the roles of the user
///
public string[] Roles { get; set; }
///
/// the date the user was created. Null if created before v1.0.5.6.
///
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
public DateTimeOffset? Created { get; set; }
public bool Disabled { get; set; }
}
}