tgstation-server  4.3.2
The /tg/station 13 server suite
ConfigurationFile.cs
Go to the documentation of this file.
1 using System.ComponentModel.DataAnnotations;
2 
3 namespace Tgstation.Server.Api.Models
4 {
8  public sealed class ConfigurationFile
9  {
13  [StringLength(Limits.MaximumStringLength)]
14  public string? Path { get; set; }
15 
19  public bool? AccessDenied { get; set; }
20 
24  public bool? IsDirectory { get; set; }
25 
29  public string? LastReadHash { get; set; }
30 
34 #pragma warning disable CA1819, SA1011 // Properties should not return arrays, Closing square bracket should be followed by a space
35  public byte[]? Content { get; set; }
36 #pragma warning restore CA1819, SA1011 // Properties should not return arrays, Closing square bracket should be followed by a space
37  }
38 }
const int MaximumStringLength
Length limit for strings in fields.
Definition: Limits.cs:11
Sanity limits to prevent users from overloading
Definition: Limits.cs:6
Represents a game configuration file. Create and delete actions uncerimonuously overwrite/delete file...