You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Models
{
[DataContract]
public class Utilisateur
{
[DataMember]
public string Username { get; private set; }
[DataMember]
public string Password { get; private set; }
[DataMember]
public List<Strategie> _strat { get; private set; }
public Utilisateur(string username, string password, List<Strategie> strat)
{
Username = username;
Password = password;
_strat = strat;
}
public Utilisateur(string username,string password)
{ Username = username;
Password = password;
_strat = new List<Strategie>();
}
public void AddStrategie(Strategie strat)
{
_strat.Add(strat);
}
public void RemoveStrategie(Strategie strat)
{
_strat.Remove(strat);
}
}
}