示例#1
0
 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"
             }
         }
     };
 }
示例#2
0
 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"
             }
         }
     };
 }
示例#3
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"
             }
         }
     };
 }
示例#4
0
 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"
                 }
             }
         };
     }
 }
示例#5
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"
                 }
             }
         };
     }
 }