public BellumGensNotificationWrapper(TeamApplication application) { notification = new BellumGensNotification() { title = $"{application.User.UserName} has applied to join {application.Team.TeamName}", icon = application.User.AvatarFull, data = application.ApplicantId, renotify = true, actions = new List <BellumGensNotificationAction>() { new BellumGensNotificationAction() { action = "viewuser", title = "View player" } } }; }
public BellumGensNotificationWrapper(TeamApplication application, NotificationState state) { if (state == NotificationState.Accepted) { notification = new BellumGensNotification() { title = $"You have been accepted to join team {application.Team.TeamName}", icon = application.Team.TeamAvatar, data = application.TeamId, renotify = true, actions = new List <BellumGensNotificationAction>() { new BellumGensNotificationAction() { action = "viewteam", title = "View team" } } }; } }