btcpayserver/BTCPayServer/Models/StoreViewModels/TokensViewModel.cs
2019-10-31 14:11:33 +09:00

63 lines
1.2 KiB
C#

using BTCPayServer.Validation;
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace BTCPayServer.Models.StoreViewModels
{
public class CreateTokenViewModel
{
[PubKeyValidatorAttribute]
public string PublicKey
{
get; set;
}
public string Label
{
get; set;
}
[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
{
public TokenViewModel[] Tokens
{
get; set;
}
[Display(Name = "API Key")]
public string ApiKey { get; set; }
public string EncodedApiKey { get; set; }
public bool StoreNotConfigured { get; set; }
}
}