tgstation-server  4.4.0
The /tg/station 13 server suite
EventNotification.cs
Go to the documentation of this file.
1 using System.Collections.Generic;
2 using System.Linq;
4 
5 namespace Tgstation.Server.Host.Components.Interop.Topic
6 {
10  sealed class EventNotification
11  {
15  public EventType Type { get; }
16 
20  public IReadOnlyCollection<object> Parameters { get; }
21 
27  public EventNotification(EventType eventType, IEnumerable<object> parameters = null)
28  {
29  Type = eventType;
30  Parameters = parameters?.ToList();
31  }
32  }
33 }
EventType
Types of events. Mirror in tgs.dm
Definition: EventType.cs:6
Data structure for TopicCommandType.EventNotification requests.
EventNotification(EventType eventType, IEnumerable< object > parameters=null)
Initializes a new instance of the EventNotification .