Table of Contents

Struct DialogResult

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

Represents a raw response value to a dialog.

public struct DialogResult
Inherited Members

Constructors

DialogResult(DialogResponse, int, string?)

Initializes a new instance of the DialogResult struct.

public DialogResult(DialogResponse response, int listItem, string? inputText)

Parameters

response DialogResponse

The way in which the player has responded to the dialog.

listItem int

The index of item selected by the player in the dialog.

inputText string

The text entered by the player in the dialog.

Properties

InputText

Gets the text entered by the player in the dialog.

public readonly string? InputText { get; }

Property Value

string

ListItem

Gets the index of item selected by the player in the dialog.

public readonly int ListItem { get; }

Property Value

int

Response

Gets the way in which the player has responded to the dialog.

public readonly DialogResponse Response { get; }

Property Value

DialogResponse