tgstation-server 6.12.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 {
13 [Required]
14 [RequestOptions(FieldPresence.Required, PutOnly = true)]
15 [StringLength(Limits.MaximumIndexableStringLength, MinimumLength = 1)]
16 public virtual string? Name { get; set; }
17 }
18}
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.