public BellumGensNotificationWrapper(TeamInvite invite) { Notification = new BellumGensNotification() { Title = $"You have been invited to join team {invite.TeamInfo.TeamName}", Icon = invite.TeamInfo.TeamAvatar, Data = invite.TeamId, Renotify = true, Actions = new List <BellumGensNotificationAction>() { new BellumGensNotificationAction() { Action = "viewteam", Title = "View team" } } }; }
public BellumGensNotificationWrapper(TeamInvite invite, NotificationState state) { if (state == NotificationState.Accepted) { Notification = new BellumGensNotification() { Title = $"{invite.InvitedUser.UserName} has accepted your invitation to join {invite.TeamInfo.TeamName}!", Icon = invite.InvitedUser.AvatarFull, Data = invite.InvitedUserId, Renotify = true, Actions = new List <BellumGensNotificationAction>() { new BellumGensNotificationAction() { Action = "viewuser", Title = "View player" } } }; } }