2021-03-22 12:09:25 -04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2018-02-07 00:19:06 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2021-03-22 12:09:25 -04:00
|
|
|
|
using Data.Abstractions;
|
2018-02-07 00:19:06 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
namespace Data.Models.Server
|
2018-02-07 00:19:06 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
public class EFServer : SharedEntity, IUniqueId
|
2018-02-07 00:19:06 -05:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
2018-11-27 19:31:48 -05:00
|
|
|
|
public long ServerId { get; set; }
|
2018-02-07 00:19:06 -05:00
|
|
|
|
[Required]
|
|
|
|
|
public int Port { get; set; }
|
2018-11-27 19:31:48 -05:00
|
|
|
|
public string EndPoint { get; set; }
|
2021-03-22 12:09:25 -04:00
|
|
|
|
public Reference.Game? GameName { get; set; }
|
2020-05-22 21:29:41 -04:00
|
|
|
|
public string HostName { get; set; }
|
2020-08-20 11:38:11 -04:00
|
|
|
|
public bool IsPasswordProtected { get; set; }
|
2023-05-07 15:18:59 -04:00
|
|
|
|
public string PerformanceBucket { get; set; }
|
2021-03-22 12:09:25 -04:00
|
|
|
|
public long Id => ServerId;
|
|
|
|
|
public string Value => EndPoint;
|
2018-02-07 00:19:06 -05:00
|
|
|
|
}
|
|
|
|
|
}
|