Moved Models to Shared Project
This commit is contained in:
parent
bae69648d0
commit
7533d5a704
19 changed files with 27 additions and 1 deletions
18
Shared/Models/GuildWars2/GuildWars2Account.cs
Normal file
18
Shared/Models/GuildWars2/GuildWars2Account.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
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>();
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue