mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-24 07:05:37 +01:00
Add validation annotations.
This commit is contained in:
parent
208bcd1b25
commit
1216bf23c8
@ -1,17 +1,23 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Giants.DataContract
|
namespace Giants.DataContract
|
||||||
{
|
{
|
||||||
public class PlayerInfo
|
public class PlayerInfo
|
||||||
{
|
{
|
||||||
|
[Required]
|
||||||
public int Index { get; set; }
|
public int Index { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
public int Frags { get; set; }
|
public int Frags { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
public int Deaths { get; set; }
|
public int Deaths { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
public string TeamName { get; set; }
|
public string TeamName { get; set; }
|
||||||
|
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user