Added signed up options for role reminder

Added option to opt out of reminders
This commit is contained in:
Sarah Faey 2022-12-09 22:26:16 +01:00
parent 64ce169094
commit c88bf5b133
18 changed files with 911 additions and 99 deletions

View file

@ -18,6 +18,13 @@ namespace Lieb.Models.GuildWars2.Raid
Dynamic = 2
}
public enum RoleReminderType
{
All = 0,
SignedUp = 1,
NotSignedUp = 2
}
public int RaidReminderId { get; set; }
[Required]
@ -40,6 +47,8 @@ namespace Lieb.Models.GuildWars2.Raid
public ulong DiscordChannelId { get; set; }
public int RoleId {get; set; }
public RoleReminderType RoleType {get; set;}
public bool Sent { get; set; } = false;
}

View file

@ -22,6 +22,7 @@ namespace Lieb.Models
public DateTime? LastSignUpAt { get; set; }
public int MainGW2Account { get; set; }
public bool AlwaysSignUpWithMainAccount { get; set; } = false;
public bool ReminderSubscription { get; set; } = true;
public ICollection<GuildWars2Account> GuildWars2Accounts { get; set; } = new List<GuildWars2Account>();
public ICollection<RoleAssignment> RoleAssignments { get; set; } = new List<RoleAssignment>();
}