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.
51 lines
994 B
51 lines
994 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Stim_Model
|
|
{
|
|
internal class Review
|
|
{
|
|
public float Rate
|
|
{
|
|
get
|
|
{
|
|
return rate;
|
|
}
|
|
private set
|
|
{
|
|
if (value < 0 || value > 5) return;
|
|
rate = value;
|
|
}
|
|
}
|
|
private float rate;
|
|
|
|
public string Text
|
|
{
|
|
get
|
|
{
|
|
return text;
|
|
}
|
|
private set
|
|
{
|
|
if (text == "") return;
|
|
text = value;
|
|
}
|
|
}
|
|
private string text;
|
|
|
|
public Review(float rate, string text)
|
|
{
|
|
Rate = rate;
|
|
Text = text;
|
|
}
|
|
|
|
public void EditReview(string text)
|
|
{
|
|
Text = text;
|
|
}
|
|
}
|
|
}
|