Ajout de la classe Review

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent d56a627120
commit 4cfd72a65e

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stim
{
internal class Review
{
public float Rate { get; set; }
public string Text { get; set; }
public Review(float rate, string text)
{
CheckRate(rate);
Text = text;
}
public bool CheckRate(float rate)
{
if (rate < 0 || rate > 5) return false;
Rate=rate;
return true;
}
}
}
Loading…
Cancel
Save