SboxSuperuser/Api/AdminChatResultEvent.cs

A small event payload class for the SboxSuperuser admin chat API. Carries a request ID and an immutable CommandResult from a host reply, plus a flag a custom view can set to suppress the default chatbox display of the result.

namespace SboxSuperuser;

/// <summary>Private client notification from a verified host reply; it grants no command authority.</summary>
public sealed class AdminChatResultEvent
{
	/// <summary>Gets the request ID associated with this reply.</summary>
	public Guid RequestId { get; }

	/// <summary>Gets immutable caller-safe status, message and structured fields.</summary>
	public CommandResult Result { get; }

	/// <summary>Set true when a custom view rendered this result to avoid duplicate default chatbox display.</summary>
	public bool SuppressDefaultDisplay { get; set; }

	internal AdminChatResultEvent( Guid requestId, CommandResult result )
	{
		RequestId = requestId;
		Result = result;
	}
}