Never forget Ctrl + S, kids

This commit is contained in:
Jordan Brown
2020-04-23 02:38:54 -04:00
parent 1145871938
commit 084c45c95b
5 changed files with 28 additions and 15 deletions
@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Host.Components.Chat.Commands;
namespace Tgstation.Server.Host.Components.Interop.Bridge
{
@@ -23,6 +25,11 @@ namespace Tgstation.Server.Host.Components.Interop.Bridge
/// </summary>
public Version Version { get; set; }
/// <summary>
/// The DMAPI <see cref="CustomCommand"/>s for <see cref="BridgeCommandType.Startup"/> requests.
/// </summary>
public ICollection<CustomCommand> CustomCommands { get; set; }
/// <summary>
/// The minimum required <see cref="DreamDaemonSecurity"/> level for <see cref="BridgeCommandType.Startup"/> requests.
/// </summary>
@@ -11,7 +11,7 @@ namespace Tgstation.Server.Host.Components.Interop.Bridge
/// <summary>
/// Representation of the initial data passed as part of a <see cref="BridgeCommandType.Startup"/> request.
/// </summary>
public sealed class RuntimeInformation : ChatChannelsUpdate
public sealed class RuntimeInformation : ChatUpdate
{
/// <summary>
/// The code used by the server to authenticate command Topics
@@ -60,7 +60,7 @@ namespace Tgstation.Server.Host.Components.Interop.Bridge
/// <param name="cryptographySuite">The <see cref="ICryptographySuite"/> used to generate the value of <see cref="DMApiParameters.AccessIdentifier"/>.</param>
/// <param name="serverPortProvider">The <see cref="IServerPortProvider"/> used to set the value of <see cref="ServerPort"/>.</param>
/// <param name="testMerges">An <see cref="IEnumerable{T}"/> used to construct the value of <see cref="TestMerges"/>.</param>
/// <param name="chatChannels">The <see cref="Chat.ChannelRepresentation"/>s for the <see cref="ChatChannelsUpdate"/>.</param>
/// <param name="chatChannels">The <see cref="Chat.ChannelRepresentation"/>s for the <see cref="ChatUpdate"/>.</param>
/// <param name="instance">The <see cref="Instance"/> used to set <see cref="InstanceName"/>.</param>
/// <param name="revision">The value of <see cref="RevisionInformation"/>.</param>
/// <param name="securityLevel">The value of <see cref="SecurityLevel"/>.</param>
@@ -8,7 +8,7 @@ namespace Tgstation.Server.Host.Components.Interop
/// <summary>
/// Represents an update of <see cref="ChannelRepresentation"/>s.
/// </summary>
public class ChatChannelsUpdate
public class ChatUpdate
{
/// <summary>
/// The <see cref="IEnumerable{T}"/> of <see cref="ChannelRepresentation"/>s.
@@ -16,10 +16,10 @@ namespace Tgstation.Server.Host.Components.Interop
public IEnumerable<ChannelRepresentation> Channels { get; }
/// <summary>
/// Initializes a new instance of the <see cref="ChatChannelsUpdate"/> <see langword="class"/>.
/// Initializes a new instance of the <see cref="ChatUpdate"/> <see langword="class"/>.
/// </summary>
/// <param name="channels">The <see cref="IEnumerable{T}"/> that forms the value of <see cref="Channels"/>.</param>
public ChatChannelsUpdate(IEnumerable<ChannelRepresentation> channels)
public ChatUpdate(IEnumerable<ChannelRepresentation> channels)
{
Channels = channels?.ToList() ?? throw new ArgumentNullException(nameof(channels));
}
@@ -20,6 +20,11 @@ namespace Tgstation.Server.Host.Components.Interop
/// </summary>
public const string ParamServerPort = "tgs_port";
/// <summary>
/// Identifies the <see cref="DMApiParameters.AccessIdentifier"/> for the session.
/// </summary>
public const string ParamAccessIdentifier = "tgs_key";
/// <summary>
/// Parameter json is encoded in for topic requests.
/// </summary>
+11 -10
View File
@@ -1,12 +1,13 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.136
# Visual Studio Version 16
VisualStudioVersion = 16.0.29728.190
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DA32568D-1D8D-4A4C-9943-BFD3CE796B3F}"
ProjectSection(SolutionItems) = preProject
.codecov.yml = .codecov.yml
.dockerignore = .dockerignore
.editorconfig = .editorconfig
.gitignore = .gitignore
.travis.yml = .travis.yml
appveyor.yml = appveyor.yml
@@ -142,6 +143,14 @@ Global
ReleaseNoService|Any CPU = ReleaseNoService|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.DebugNoService|Any CPU.ActiveCfg = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.DebugNoService|Any CPU.Build.0 = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Release|Any CPU.Build.0 = Release|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.ReleaseNoService|Any CPU.ActiveCfg = Release|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.ReleaseNoService|Any CPU.Build.0 = Release|Any CPU
{A09C947F-4B9B-4AEE-AB50-47055EA05F18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A09C947F-4B9B-4AEE-AB50-47055EA05F18}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A09C947F-4B9B-4AEE-AB50-47055EA05F18}.DebugNoService|Any CPU.ActiveCfg = Debug|Any CPU
@@ -158,14 +167,6 @@ Global
{D36B99C4-E771-42D6-A95F-1102B3E236DF}.Release|Any CPU.Build.0 = Release|Any CPU
{D36B99C4-E771-42D6-A95F-1102B3E236DF}.ReleaseNoService|Any CPU.ActiveCfg = Release|Any CPU
{D36B99C4-E771-42D6-A95F-1102B3E236DF}.ReleaseNoService|Any CPU.Build.0 = Release|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.DebugNoService|Any CPU.ActiveCfg = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.DebugNoService|Any CPU.Build.0 = Debug|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.Release|Any CPU.Build.0 = Release|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.ReleaseNoService|Any CPU.ActiveCfg = Release|Any CPU
{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}.ReleaseNoService|Any CPU.Build.0 = Release|Any CPU
{8B4A208D-A48A-4A5D-8B94-E2661138865D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8B4A208D-A48A-4A5D-8B94-E2661138865D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8B4A208D-A48A-4A5D-8B94-E2661138865D}.DebugNoService|Any CPU.ActiveCfg = Debug|Any CPU