tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
DMApiParameters.cs
Go to the documentation of this file.
1using System;
2using System.ComponentModel.DataAnnotations;
3
5{
9 public abstract class DMApiParameters
10 {
14 [Required]
15 public string AccessIdentifier { get; set; }
16
21 public DMApiParameters(string accessIdentifier)
22 {
23 AccessIdentifier = accessIdentifier ?? throw new ArgumentNullException(nameof(accessIdentifier));
24 }
25
30 protected DMApiParameters()
31 {
32 AccessIdentifier = null!;
33 }
34 }
35}
DMApiParameters(string accessIdentifier)
Initializes a new instance of the DMApiParameters class.
DMApiParameters()
Initializes a new instance of the DMApiParameters class.
string AccessIdentifier
Used to identify and authenticate the DreamDaemon instance.