mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 06:27:19 +01:00
Nullify EventNotification
This commit is contained in:
@@ -4,8 +4,6 @@ using System.Linq;
|
||||
|
||||
using Tgstation.Server.Host.Components.Events;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Tgstation.Server.Host.Components.Interop.Topic
|
||||
{
|
||||
/// <summary>
|
||||
@@ -22,14 +20,14 @@ namespace Tgstation.Server.Host.Components.Interop.Topic
|
||||
/// <summary>
|
||||
/// The set of parameters.
|
||||
/// </summary>
|
||||
public IReadOnlyCollection<string> Parameters { get; }
|
||||
public IReadOnlyCollection<string?> Parameters { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EventNotification"/> class.
|
||||
/// </summary>
|
||||
/// <param name="eventType">The value of <see cref="Type"/>.</param>
|
||||
/// <param name="parameters">The <see cref="IEnumerable{T}"/> that forms the value of <see cref="Parameters"/>.</param>
|
||||
public EventNotification(EventType eventType, IEnumerable<string> parameters = null)
|
||||
public EventNotification(EventType eventType, IEnumerable<string?> parameters)
|
||||
{
|
||||
Type = eventType;
|
||||
Parameters = parameters?.ToList() ?? throw new ArgumentNullException(nameof(parameters));
|
||||
|
||||
Reference in New Issue
Block a user