From 126fc3247b0d271717f5799c77545b4416c9a096 Mon Sep 17 00:00:00 2001 From: Anthony RICHARD Date: Sat, 13 May 2023 09:53:01 +0200 Subject: [PATCH] Suppression de la classe Admin (inutile) --- Sources/Stim.Model/Admin.cs | 44 ------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 Sources/Stim.Model/Admin.cs diff --git a/Sources/Stim.Model/Admin.cs b/Sources/Stim.Model/Admin.cs deleted file mode 100644 index 48f5671..0000000 --- a/Sources/Stim.Model/Admin.cs +++ /dev/null @@ -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 gamesList, Game game) - { - gamesList.Add(game); - } - public void RemoveGameFromGamesList(List gamesList, Game game) - { - gamesList.Remove(game); - } - public void DelCom (Game game, Review review) - { - if (permission >= 1) - { - game.RemoveReview(review); - } - return; - } - } -}