tgstation-server  4.4.0
The /tg/station 13 server suite
DMApiConstants.cs
Go to the documentation of this file.
1 using Newtonsoft.Json;
2 using Newtonsoft.Json.Serialization;
3 using System;
5 
6 namespace Tgstation.Server.Host.Components.Interop
7 {
11  static class DMApiConstants
12  {
16  public const string ParamApiVersion = "server_service_version";
17 
21  public const string ParamServerPort = "tgs_port";
22 
26  public const string ParamAccessIdentifier = "tgs_key";
27 
31  public const string TopicData = "tgs_data";
32 
36  public static readonly Version Version = new Version(5, 2, 2);
37 
41  public static readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings
42  {
43  ContractResolver = new DefaultContractResolver
44  {
45  NamingStrategy = new CamelCaseNamingStrategy()
46  },
47  Converters = new JsonConverter[]
48  {
49  new VersionConverter(),
50  new BoolConverter()
51  },
52  DefaultValueHandling = DefaultValueHandling.Ignore,
53  ReferenceLoopHandling = ReferenceLoopHandling.Ignore
54  };
55  }
56 }
Constants used for communication with the DMAPI
JsonConverter for decoding bools returned by BYOND.
Definition: BoolConverter.cs:9
static readonly Version Version
The DMAPI Version being used.
JsonConverter for serializing Versions for BYOND.