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.
40 lines
1.2 KiB
40 lines
1.2 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 Champion
|
|
{
|
|
[DataMember]
|
|
public string Name { get; private set; }
|
|
[DataMember]
|
|
public string Titre { get; private set; }
|
|
[DataMember]
|
|
public string Image { get; private set; }
|
|
[DataMember]
|
|
public List<Ability> Abilities { get; private set; }
|
|
|
|
public Champion(string name,string titre,string image, List<Ability> abilities)
|
|
{
|
|
// Le constructeur de la classe Champion initialise le nom le titre le nom de l'image et les abilités du champion.
|
|
Name = name;
|
|
Titre = titre;
|
|
Image = image;
|
|
Abilities = new List<Ability>(abilities);
|
|
}
|
|
public Champion(string name, string titre, string image)
|
|
{
|
|
// Le constructeur de la classe Champion initialise le nom le titre et le nom de l'image du champion.
|
|
Name = name;
|
|
Titre = titre;
|
|
Image = image;
|
|
Abilities = new List<Ability>();
|
|
}
|
|
}
|
|
}
|