Merge branch 'Code' of https://codefirst.iut.uca.fr/git/hugo.livet/ConsEco into Code
continuous-integration/drone/push Build is failing Details

Code
Hugo LIVET 2 years ago
commit f27994b865

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Banque
{
public string Nom { get; private set; }
public string UrlSite { get; private set; }
public string UrlLogo { get; private set; }
public List<Compte> ListeDesComptes { get; private set; }
public Banque(string nom, string urlSite, string urlLogo)
{
Nom = nom;
UrlSite = urlSite;
UrlLogo = urlLogo;
}
private AjouterCompte(Compte compte)
{
ListeDesComptes.Add(compte);
}
private SupprimerCompte(Compte compte)
{
ListeDesComptes.Remove(compte);
}
}
}

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
internal enum Devises
{
Livre_sterling,
Rouble,
Euro,
Yen,
Dollars
}
}

@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//using Banque;
namespace Model
{
internal class Inscrit
{
public Inscrit(string id, string nom, string mail, string prenom, string mdp, double soldeTotal)
{
Id = id;
Nom = nom;
Mail = mail;
Prenom = prenom;
Mdp = mdp;
SoldeTotal = soldeTotal;
//TouteLesBanques = new List<Banque>();
}
public string Id { get; private set; }
public string Nom { get; private set; }
public string Mail { get; private set; }
public string Prenom { get; private set; }
public string Mdp { get; private set; }
public double SoldeTotal { get; private set; }
public Devises Dev { get; private set; }
//private List<Banque> TouteLesBanques { get; private set; }
/*public void ajouterBanque(Banque b)
{
TouteLesBanques.Add(b);
}
public void ajouterBanque(Banque b)
{
TouteLesBanques.Remove(b);
}*/
public void ChoisirDevise(Devises devise)
{
Dev = devise;
}
}
}
Loading…
Cancel
Save