using ODMO.Commons.Enums.Server; namespace ODMO.Commons.ViewModel.Server { public class ServerUpdateViewModel { /// /// Unique sequential identifier. /// public long Id { get; set; } /// /// Server name. /// public string Name { get; set; } /// /// Server experience multiplier. /// public int Experience { get; set; } /// /// Server maintenance state. /// public bool Maintenance { get; set; } /// /// Server port address. /// public int Port { get; set; } /// /// Flag for empty fields. /// public bool Empty => string.IsNullOrEmpty(Name); /// /// Server type enumeration. /// public ServerTypeEnum Type { get; set; } public ServerUpdateViewModel() { } public ServerUpdateViewModel( long id, string name, int experience, bool maintenance, ServerTypeEnum type, int port) { Id = id; Name = name; Experience = experience; Maintenance = maintenance; Type = type; Port = port; } } }