Example #1
0
 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"
             }
         }
     };
 }
Example #2
0
 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"
                 }
             }
         };
     }
 }