tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Components
Interop
Topic
EventNotification.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Linq;
4
5
using
Tgstation.Server.Host.Components.Events
;
6
7
namespace
Tgstation.Server.Host.Components.Interop.Topic
8
{
12
sealed
class
EventNotification
13
{
18
public
EventType
Type
{
get
; }
19
23
public
IReadOnlyCollection<string?>?
Parameters
{
get
; }
24
30
public
EventNotification
(
EventType
eventType, IEnumerable<string?> parameters)
31
{
32
Type
= eventType;
33
Parameters
= parameters?.ToList() ??
throw
new
ArgumentNullException(nameof(parameters));
34
}
35
}
36
}
Tgstation.Server.Host.Components.Interop.Topic.EventNotification
Data structure for TopicCommandType.EventNotification requests.
Definition
EventNotification.cs:13
Tgstation.Server.Host.Components.Interop.Topic.EventNotification.Type
EventType Type
The EventType triggered.
Definition
EventNotification.cs:18
Tgstation.Server.Host.Components.Interop.Topic.EventNotification.EventNotification
EventNotification(EventType eventType, IEnumerable< string?> parameters)
Initializes a new instance of the EventNotification class.
Definition
EventNotification.cs:30
Tgstation.Server.Host.Components.Interop.Topic.EventNotification.Parameters
IReadOnlyCollection< string?>? Parameters
The set of parameters.
Definition
EventNotification.cs:23
Tgstation.Server.Host.Components.Events
Definition
EventConsumer.cs:10
Tgstation.Server.Host.Components.Events.EventType
EventType
Types of events. Mirror in tgs.dm. Prefer last listed name for script.
Definition
EventType.cs:7
Tgstation.Server.Host.Components.Interop.Topic
Definition
ChatCommand.cs:6
Generated by
1.9.8