btcpayserver/BTCPayServer/Models/StoreViewModels/TokensViewModel.cs

59 lines
1.1 KiB
C#
Raw Normal View History

2017-09-13 15:47:34 +09:00
using System.ComponentModel.DataAnnotations;
2020-06-28 17:55:27 +09:00
using BTCPayServer.Validation;
using Microsoft.AspNetCore.Mvc.Rendering;
2017-09-13 15:47:34 +09:00
2017-09-13 23:50:36 +09:00
namespace BTCPayServer.Models.StoreViewModels
2017-09-13 15:47:34 +09:00
{
public class CreateTokenViewModel
{
[PubKeyValidatorAttribute]
public string PublicKey
{
get; set;
}
public string Label
{
get; set;
}
2017-09-13 15:47:34 +09:00
[Required]
public string StoreId
{
get; set;
}
public SelectList Stores
{
get; set;
}
}
public class TokenViewModel
{
public string Id
{
get; set;
}
public string Label
{
get; set;
}
public string SIN
{
get; set;
}
}
public class TokensViewModel
2017-09-13 15:47:34 +09:00
{
public TokenViewModel[] Tokens
{
get; set;
}
[Display(Name = "API Key")]
public string ApiKey { get; set; }
public string EncodedApiKey { get; set; }
public bool StoreNotConfigured { get; set; }
}
2017-09-13 15:47:34 +09:00
}