66 TopicCommandType.EventNotification
67 or TopicCommandType.ChangePort
68 or TopicCommandType.ChangeRebootState
69 or TopicCommandType.InstanceRenamed
70 or TopicCommandType.ChatChannelsUpdate
71 or TopicCommandType.ServerRestarted =>
true,
72 TopicCommandType.ChatCommand
73 or TopicCommandType.HealthCheck
74 or TopicCommandType.ReceiveChunk =>
false,
75 TopicCommandType.SendChunk =>
throw new InvalidOperationException(
"SendChunk topic priority should be based on the original TopicParameters!"),
76 _ =>
throw new InvalidOperationException($
"Invalid value for {nameof(CommandType)}: {CommandType}"),
86 ChatCommand = chatCommand ??
throw new ArgumentNullException(nameof(chatCommand));
96 EventNotification = eventNotification ??
throw new ArgumentNullException(nameof(eventNotification));
126 NewInstanceName = newInstanceName ??
throw new ArgumentNullException(nameof(newInstanceName));
136 ChatUpdate = channelsUpdate ??
throw new ArgumentNullException(nameof(channelsUpdate));
147 NewServerVersion = newServerVersion ??
throw new ArgumentNullException(nameof(newServerVersion));
158 Chunk = chunk ??
throw new ArgumentNullException(nameof(chunk));
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.
TopicCommandType? CommandType
The TopicCommandType.
TopicParameters(ChatCommand chatCommand)
Initializes a new instance of the TopicParameters class.
RebootState? NewRebootState
The RebootState for TopicCommandType.ChangeRebootState requests.
string NewInstanceName
The new Api.Models.NamedEntity.Name for TopicCommandType.InstanceRenamed requests.
Version NewServerVersion
The new server Version after a reattach.
ChunkData Chunk
The ChunkData for a partial request.
ushort? NewPort
The new port for TopicCommandType.ChangePort or TopicCommandType.ServerPortUpdate requests.
TopicParameters(EventNotification eventNotification)
Initializes a new instance of the TopicParameters class.
TopicParameters(ushort newPort)
Initializes a new instance of the TopicParameters class.
TopicParameters(string newInstanceName)
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.
RebootState
Represents the action to take when /world/Reboot() is called.