Added account management sites

This commit is contained in:
t.ruspekhofer 2022-02-27 00:31:04 +01:00
parent c8252daf88
commit 7113e3abee
10 changed files with 332 additions and 64 deletions

View file

@ -1,9 +1,13 @@
namespace Lieb.Models.GuildWars2
using System.ComponentModel.DataAnnotations;
namespace Lieb.Models.GuildWars2
{
public class GuildWars2Account
{
public int GuildWars2AccountId { get; set; }
public string ApiKey { get; set; } = string.Empty;
[Required]
[RegularExpression("^[a-zA-z ]{3,27}\\.[0-9]{4}$", ErrorMessage = "Invalid Account Name")]
public string AccountName { get; set; } = string.Empty;
public ICollection<Equipped> EquippedBuilds { get; set; } = new List<Equipped>();