From 1216bf23c8149a03db21f0a82688d9d78b9cc03f Mon Sep 17 00:00:00 2001 From: Nick Blakely Date: Sun, 9 Aug 2020 12:44:12 -0700 Subject: [PATCH] Add validation annotations. --- Giants.DataContract/Contracts/PlayerInfo.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Giants.DataContract/Contracts/PlayerInfo.cs b/Giants.DataContract/Contracts/PlayerInfo.cs index 7f36265..3b9c072 100644 --- a/Giants.DataContract/Contracts/PlayerInfo.cs +++ b/Giants.DataContract/Contracts/PlayerInfo.cs @@ -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)