Table of Contents

Class DispatchResult

Namespace
SampSharp.Entities.SAMP.Commands
Assembly
SampSharp.OpenMp.Entities.Commands.dll

Result of a command dispatch operation.

public class DispatchResult
Inheritance
DispatchResult
Inherited Members

Properties

CommandOverload

The executed command overload (if matched).

public CommandDefinition? CommandOverload { get; set; }

Property Value

CommandDefinition

ParsedArguments

Parsed argument values for the command (if successfully matched).

public object?[]? ParsedArguments { get; set; }

Property Value

object[]

Response

The response code.

public DispatchResponse Response { get; }

Property Value

DispatchResponse

UsedCommandName

The actual command name/path used as input (e.g., "msg" if an alias was used).

public string UsedCommandName { get; set; }

Property Value

string

Methods

CreateInvalidArguments()

Creates an "invalid arguments" result.

public static DispatchResult CreateInvalidArguments()

Returns

DispatchResult

CreateNotFound()

Creates a "command not found" result.

public static DispatchResult CreateNotFound()

Returns

DispatchResult

CreatePermissionDenied()

Creates a "permission denied" result.

public static DispatchResult CreatePermissionDenied()

Returns

DispatchResult

CreateSuccess()

Creates a successful result.

public static DispatchResult CreateSuccess()

Returns

DispatchResult