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" } } }; } }