Struct CommandDispatchResult
- Namespace
- JD.AI.Core.Commands
- Assembly
- JD.AI.Core.dll
public readonly record struct CommandDispatchResult : IEquatable<CommandDispatchResult>
- Implements
-
- Inherited Members
-
Constructors
CommandDispatchResult(bool, bool, string, string?, string?)
public CommandDispatchResult(bool Handled, bool Success, string Response, string? CommandName, string? SourceLabel)
Parameters
Handled bool
Success bool
Response string
CommandName string
SourceLabel string
Properties
CommandName
public string? CommandName { get; init; }
Property Value
- string
Handled
public bool Handled { get; init; }
Property Value
- bool
NotHandled
public static CommandDispatchResult NotHandled { get; }
Property Value
- CommandDispatchResult
Response
public string Response { get; init; }
Property Value
- string
SourceLabel
public string? SourceLabel { get; init; }
Property Value
- string
Success
public bool Success { get; init; }
Property Value
- bool
Methods
HandledFailure(string, string?, string?)
public static CommandDispatchResult HandledFailure(string response, string? commandName = null, string? sourceLabel = null)
Parameters
response string
commandName string
sourceLabel string
Returns
- CommandDispatchResult