ADD and MODIF premier jet

biblioteque
Matheo THIERRY 2 years ago
parent a4edd1d998
commit 0234b91872

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class Category
{
public string nom { get; set; }
}
}

@ -1,7 +0,0 @@
namespace Biblioteque_de_Class
{
public class Class1
{
}
}

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class Note
{
public string nom = "Note sans nom";
public string logoPATH = "PATH TO DEFAULT LOGO";
public List<Category> tag;
public Note(string Nnom, string llogoPATH, List<Category> basetags)
{
nom = Nnom;
logoPATH = llogoPATH;
tag = basetags;
}
}
}

@ -0,0 +1,24 @@
namespace Biblioteque_de_Class
{
public class Utilisateur
{
private string Psd { get; set; }
private string Mail { get; set; }
private string Mdp { get; set; }
private List<Note> NoteList;
public Utilisateur(string Upseudo, string Umail, string Upassword)
{
Psd = Upseudo;
Mail=Umail;
Mdp = Upassword;
NoteList = new List<Note>();
}
public override string ToString()
{
return $"pseudo : {Psd}\nmail : {Mail}\npassword : {Mdp}\nNote possédé : { NoteList.Count}";
}
}
}
Loading…
Cancel
Save