Beispiel #1
0
        public void SendInvitations([FromForm] int game_id)
        {
            //CloudMessagingService.GameInvitation(Sub, game_id);

            var game = DatabaseService.GetGame(game_id, Sub);

            if (game.WinCode != String.Empty)
            {
                foreach (int uid in game.UserIds)
                {
                    var user = DatabaseService.GetUserById(uid);
                    CloudMessagingService.GameInvitation(user.Sub, game_id);
                }
            }
        }
 public void SendInvitationTest([FromForm] string sub, [FromForm] int game_id)
 {
     CloudMessagingService.GameInvitation(sub, game_id);
 }