btcpayserver/BTCPayServer/Models/ManageViewModels/IndexViewModel.cs

32 lines
638 B
C#
Raw Normal View History

2020-06-28 17:55:27 +09:00
using System;
2017-09-13 15:47:34 +09:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
2020-06-28 17:55:27 +09:00
using BTCPayServer.Validation;
2017-09-13 15:47:34 +09:00
namespace BTCPayServer.Models.ManageViewModels
{
public class IndexViewModel
{
public string Username { get; set; }
[Required]
[EmailAddress]
[MaxLength(50)]
public string Email
{
get; set;
}
2017-09-13 15:47:34 +09:00
public bool IsEmailConfirmed { get; set; }
2017-09-13 15:47:34 +09:00
[Phone]
2017-09-13 15:47:34 +09:00
[Display(Name = "Phone number")]
[MaxLength(50)]
public string PhoneNumber { get; set; }
2017-09-13 15:47:34 +09:00
}
2017-09-13 15:47:34 +09:00
}