Player models and interfaces
This commit is contained in:
19
EstusShots.Shared/Dto/Player.cs
Normal file
19
EstusShots.Shared/Dto/Player.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace EstusShots.Shared.Dto
|
||||
{
|
||||
public class Player
|
||||
{
|
||||
public Guid PlayerId { get; set; }
|
||||
|
||||
public string HexId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Alias { get; set; }
|
||||
|
||||
public bool Anonymous { get; set; }
|
||||
|
||||
public string DisplayName => Anonymous ? Alias : Name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user