tgstation-server 6.14.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
NamedEntity.cs
Go to the documentation of this file.
1using System.ComponentModel.DataAnnotations;
2
4{
8 public abstract class NamedEntity : EntityId
9 {
14 [Required]
15 [RequestOptions(FieldPresence.Required, PutOnly = true)]
16 [StringLength(Limits.MaximumIndexableStringLength, MinimumLength = 1)]
17 public virtual string? Name { get; set; }
18 }
19}
Common base of entities with IDs.
Definition EntityId.cs:7
Sanity limits to prevent users from overloading.
Definition Limits.cs:9
const int MaximumIndexableStringLength
Length limit for NamedEntity.Names.
Definition Limits.cs:23
Base class for named entities.
Definition NamedEntity.cs:9
virtual ? string Name
The name of the entity represented by the NamedEntity.
FieldPresence
Indicates whether a request field is Required or Ignored.
@ Required
DMAPI validation must suceed for the deployment to succeed.