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(StrategyComment comment) { Notification = new BellumGensNotification() { Title = $"New comments on your strategy", Icon = comment.UserAvatar, Data = comment.StratId, Renotify = true, Actions = new List <BellumGensNotificationAction>() { new BellumGensNotificationAction() { Action = "viewstrategy", Title = "View comments" } } }; }
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(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" } } }; } }
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" } } }; } }