using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace ParionsCuite.Modeles
{
[DataContract]
public class Parier
{
///
/// Gets or sets the first player involved in the bet.
///
[DataMember]
public Inviter i1 { get; set; }
///
/// Gets or sets the second player involved in the bet.
///
[DataMember]
public Inviter i2 { get; set; }
///
/// Gets or sets the goal of the bet.
///
[DataMember]
public string But { get; private set; }
///
/// Gets or sets the stake of the bet.
///
[DataMember]
public string Enjeu { get; private set; }
///
/// Initializes a new instance of the class.
///
/// The first player involved in the bet.
/// The second player involved in the bet.
/// The goal of the bet.
/// The stake of the bet.
public Parier(Inviter i1, Inviter i2, string but, string enjeu)
{
this.i1 = i1;
this.i2 = i2;
But = but;
Enjeu = enjeu;
}
///
/// Returns a string that represents the current object.
///
/// A string representation of the object.
public override string ToString()
{
return $"joueur n°1 : {i1.Prenom}, \njoueur n°2 : {i2.Prenom}, \nbut : {But}, enjeux : {Enjeu}";
}
}
}