Suppression de la classe Admin (inutile)

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent 8505e3c759
commit 126fc3247b

@ -1,44 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Admin : User
{
public int Permission
{
get { return permission; }
private set
{
permission = value;
}
}
private int permission;
public Admin(string username, string biographie, string email, string password, int perm)
: base(username, biographie, email, password)
{
Permission = perm;
}
public void AddGametoGamesList(List<Game> gamesList, Game game)
{
gamesList.Add(game);
}
public void RemoveGameFromGamesList(List<Game> gamesList, Game game)
{
gamesList.Remove(game);
}
public void DelCom (Game game, Review review)
{
if (permission >= 1)
{
game.RemoveReview(review);
}
return;
}
}
}
Loading…
Cancel
Save