added RaidEdit page
This commit is contained in:
parent
bd47610371
commit
a3062165e1
9 changed files with 343 additions and 46 deletions
|
@ -1,35 +1,48 @@
|
|||
namespace Lieb.Models.GuildWars2.Raid
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Lieb.Models.GuildWars2.Raid
|
||||
{
|
||||
public enum RaidType
|
||||
{
|
||||
Planned = 1,
|
||||
RandomWithBoons = 2,
|
||||
RandomClasses = 3,
|
||||
RandomEliteSpecialization = 4,
|
||||
Planned = 0,
|
||||
RandomWithBoons = 1,
|
||||
RandomClasses = 2,
|
||||
RandomEliteSpecialization = 3,
|
||||
}
|
||||
|
||||
public class Raid
|
||||
{
|
||||
public int RaidId { get; private set; }
|
||||
|
||||
[Required]
|
||||
public string Title { get; set; } = String.Empty;
|
||||
|
||||
[Required]
|
||||
public string Description { get; set; } = String.Empty;
|
||||
|
||||
public DateTime StartTime { get; set; }
|
||||
[Required]
|
||||
public DateTime Date { get; set; } = DateTime.Now;
|
||||
|
||||
public double RaidDuration { get; set; }
|
||||
[Required]
|
||||
public DateTimeOffset StartTime { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTimeOffset EndTime { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Organizer { get; set; } = String.Empty;
|
||||
|
||||
[Required]
|
||||
public string Guild { get; set; } = String.Empty;
|
||||
|
||||
[Required]
|
||||
public string VoiceChat { get; set; } = String.Empty;
|
||||
|
||||
public int Frequency { get; set; }
|
||||
|
||||
[Required]
|
||||
public RaidType RaidType { get; set; }
|
||||
|
||||
public int Frequency { get; set; }
|
||||
|
||||
//role name, number of spots
|
||||
public ICollection<PlannedRaidRole> Roles { get; set; } = new HashSet<PlannedRaidRole>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue