76 TopicCommandType.EventNotification
77 or TopicCommandType.ChangePort
78 or TopicCommandType.ChangeRebootState
79 or TopicCommandType.InstanceRenamed
80 or TopicCommandType.ChatChannelsUpdate
81 or TopicCommandType.Broadcast
82 or TopicCommandType.CompleteEvent
83 or TopicCommandType.ServerRestarted =>
true,
84 TopicCommandType.ChatCommand
85 or TopicCommandType.HealthCheck
86 or TopicCommandType.ReceiveChunk =>
false,
87 TopicCommandType.SendChunk =>
throw new InvalidOperationException(
"SendChunk topic priority should be based on the original TopicParameters!"),
88 _ =>
throw new InvalidOperationException($
"Invalid value for {nameof(CommandType)}: {CommandType}"),
98 newInstanceName ??
throw new ArgumentNullException(nameof(newInstanceName)),
108 broadcastMessage ??
throw new ArgumentNullException(nameof(broadcastMessage)),
118 ChatCommand = chatCommand ??
throw new ArgumentNullException(nameof(chatCommand));
128 EventNotification = eventNotification ??
throw new ArgumentNullException(nameof(eventNotification));
158 ChatUpdate = channelsUpdate ??
throw new ArgumentNullException(nameof(channelsUpdate));
169 NewServerVersion = newServerVersion ??
throw new ArgumentNullException(nameof(newServerVersion));
180 Chunk = chunk ??
throw new ArgumentNullException(nameof(chunk));
218 : this(stringCommandType)
220#pragma warning disable IDE0010
221 switch (stringCommandType)
230 throw new InvalidOperationException($
"Invalid string TopicCommandType: {stringCommandType}");
232#pragma warning restore IDE0010
Represents an update of ChannelRepresentations.
A packet of a split serialized set of data.
Common base for interop parameters.
Represents a chat command to be handled by DD.
Data structure for TopicCommandType.EventNotification requests.
Parameters for a topic request.
TopicParameters(RebootState newRebootState)
Initializes a new instance of the TopicParameters class.
static TopicParameters CreateInstanceRenamedTopicParameters(string newInstanceName)
Initializes a new instance of the TopicParameters class.
string? EventId
The completed custom event ID.
string? BroadcastMessage
The message to broadcast for TopicCommandType.Broadcast requests.
TopicCommandType? CommandType
The TopicCommandType.
Version? NewServerVersion
The new server Version after a reattach.
TopicParameters(ChatCommand chatCommand)
Initializes a new instance of the TopicParameters class.
static TopicParameters CreateBroadcastParameters(string broadcastMessage)
Initializes a new instance of the TopicParameters class.
ChunkData? Chunk
The ChunkData for a partial request.
RebootState? NewRebootState
The RebootState for TopicCommandType.ChangeRebootState requests.
ushort? NewPort
The new port for TopicCommandType.ChangePort or TopicCommandType.ServerPortUpdate requests.
TopicParameters(EventNotification eventNotification)
Initializes a new instance of the TopicParameters class.
string? NewInstanceName
The new Api.Models.NamedEntity.Name for TopicCommandType.InstanceRenamed requests.
TopicParameters(ushort newPort)
Initializes a new instance of the TopicParameters class.
TopicParameters(Guid eventId)
Initializes a new instance of the TopicParameters class.
TopicParameters(string stringCommand, TopicCommandType stringCommandType)
Initializes a new instance of the TopicParameters class.
TopicParameters()
Initializes a new instance of the TopicParameters class.
TopicParameters(TopicCommandType commandType)
Initializes a new instance of the TopicParameters class.
bool IsPriority
Whether or not the TopicParameters constitute a priority request.
TopicParameters(ChatUpdate channelsUpdate)
Initializes a new instance of the TopicParameters class.
TopicParameters(ChunkData chunk)
Initializes a new instance of the TopicParameters class.
TopicParameters(Version newServerVersion, ushort serverPort)
Initializes a new instance of the TopicParameters class.
TopicCommandType
The type of topic command being sent.
@ CompleteEvent
Notifying about the completion of a custom event.
@ ChangePort
DreamDaemon port change request.
@ HealthCheck
Ping to ensure the server is running.
@ SendChunk
Part of a larger topic.
@ ChangeRebootState
Reboot state change request.
@ ServerRestarted
Notify the server of a reattach and potentially new version.
@ ChatChannelsUpdate
Chat channels were changed.
RebootState
Represents the action to take when /world/Reboot() is called.