71 TopicCommandType.EventNotification
72 or TopicCommandType.ChangePort
73 or TopicCommandType.ChangeRebootState
74 or TopicCommandType.InstanceRenamed
75 or TopicCommandType.ChatChannelsUpdate
76 or TopicCommandType.Broadcast
77 or TopicCommandType.ServerRestarted =>
true,
78 TopicCommandType.ChatCommand
79 or TopicCommandType.HealthCheck
80 or TopicCommandType.ReceiveChunk =>
false,
81 TopicCommandType.SendChunk =>
throw new InvalidOperationException(
"SendChunk topic priority should be based on the original TopicParameters!"),
82 _ =>
throw new InvalidOperationException($
"Invalid value for {nameof(CommandType)}: {CommandType}"),
92 newInstanceName ??
throw new ArgumentNullException(nameof(newInstanceName)),
102 broadcastMessage ??
throw new ArgumentNullException(nameof(broadcastMessage)),
112 ChatCommand = chatCommand ??
throw new ArgumentNullException(nameof(chatCommand));
122 EventNotification = eventNotification ??
throw new ArgumentNullException(nameof(eventNotification));
152 ChatUpdate = channelsUpdate ??
throw new ArgumentNullException(nameof(channelsUpdate));
163 NewServerVersion = newServerVersion ??
throw new ArgumentNullException(nameof(newServerVersion));
174 Chunk = chunk ??
throw new ArgumentNullException(nameof(chunk));
202 : this(stringCommandType)
204#pragma warning disable IDE0010
205 switch (stringCommandType)
214 throw new InvalidOperationException($
"Invalid string TopicCommandType: {stringCommandType}");
216#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? 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(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.
RebootState
Represents the action to take when /world/Reboot() is called.