Table of Contents

Struct PluginTradeCommandResult

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

The outcome of one trade command, with an optional explanation.

public readonly record struct PluginTradeCommandResult : IEquatable<PluginTradeCommandResult>
Implements
Inherited Members

Constructors

PluginTradeCommandResult(PluginTradeCommandStatus, string?)

The outcome of one trade command, with an optional explanation.

public PluginTradeCommandResult(PluginTradeCommandStatus Status, string? Notice = null)

Parameters

Status PluginTradeCommandStatus

What the client did with the command.

Notice string

A short human-readable reason, when there is one.

Properties

Accepted

True when the command actually went out to the server.

public bool Accepted { get; }

Property Value

bool

Notice

A short human-readable reason, when there is one.

public string? Notice { get; init; }

Property Value

string

Status

What the client did with the command.

public PluginTradeCommandStatus Status { get; init; }

Property Value

PluginTradeCommandStatus