Nullify EventNotification

This commit is contained in:
Jordan Dominion
2023-12-23 10:09:00 -05:00
parent 7747df9afd
commit 6f9808f2b8
@@ -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));