btcpayserver/BTCPayServer/Models/ManageViewModels/IndexViewModel.cs

37 lines
619 B
C#
Raw Normal View History

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