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.
Trek12_API/Sources/Model/GameMode.cs

35 lines
702 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class GameMode
{
public int Id { get; set; }
public string Name
{
get => name;
set
{
if (value == null)
{
throw new ArgumentException("A GameMode's name cannot be null");
}
name = value;
}
}
private string name = "";
public GameMode(int id= 0,string name = "Classique")
{
this.Id = id;
this.Name = name;
}
}
}