Add validation annotations.

This commit is contained in:
Nick Blakely 2020-08-09 12:44:12 -07:00
parent 208bcd1b25
commit 1216bf23c8
1 changed files with 6 additions and 0 deletions

View File

@ -1,17 +1,23 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Giants.DataContract
{
public class PlayerInfo
{
[Required]
public int Index { get; set; }
[Required]
public string Name { get; set; }
[Required]
public int Frags { get; set; }
[Required]
public int Deaths { get; set; }
[Required]
public string TeamName { get; set; }
public override bool Equals(object obj)