fixed Add external user command
This commit is contained in:
parent
a504925752
commit
f40903851e
9 changed files with 122 additions and 39 deletions
|
@ -12,18 +12,39 @@
|
|||
public class RaidSignUp
|
||||
{
|
||||
public int RaidSignUpId { get; set; }
|
||||
public bool IsExternalUser {get { return LiebUserId == 0;}}
|
||||
public bool IsExternalUser {get { return LiebUserId == null;}}
|
||||
public int RaidId { get; set; }
|
||||
public ulong LiebUserId { get; set; }
|
||||
public int GuildWars2AccountId { get; set; }
|
||||
public ulong? LiebUserId { get; set; }
|
||||
public int? GuildWars2AccountId { get; set; }
|
||||
public int RaidRoleId { get; set; }
|
||||
public string ExternalUserName {get; set;} = string.Empty;
|
||||
|
||||
public SignUpType SignUpType { get; set; }
|
||||
|
||||
public Raid Raid { get; set; }
|
||||
public LiebUser LiebUser { get; set; }
|
||||
public GuildWars2Account GuildWars2Account { get; set; }
|
||||
public LiebUser? LiebUser { get; set; }
|
||||
public GuildWars2Account? GuildWars2Account { get; set; }
|
||||
public RaidRole RaidRole { get; set; }
|
||||
|
||||
public RaidSignUp(int raidId, ulong userId, int gw2AccountId, int roleId, SignUpType signUpType)
|
||||
{
|
||||
RaidId = raidId;
|
||||
LiebUserId = userId;
|
||||
GuildWars2AccountId = gw2AccountId;
|
||||
RaidRoleId = roleId;
|
||||
SignUpType = signUpType;
|
||||
}
|
||||
|
||||
public RaidSignUp(int raidId, string userName, int roleId, SignUpType signUpType)
|
||||
{
|
||||
RaidId = raidId;
|
||||
RaidRoleId = roleId;
|
||||
SignUpType = signUpType;
|
||||
ExternalUserName = userName;
|
||||
}
|
||||
private RaidSignUp()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue