Table of Contents

Interface IDialogService

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

Provides the functionality for showing dialogs to players.

public interface IDialogService

Methods

ShowAsync<TResponse>(Player, IDialog<TResponse>)

Shows the specified dialog to the player.

Task<TResponse> ShowAsync<TResponse>(Player player, IDialog<TResponse> dialog) where TResponse : struct

Parameters

player Player

The player to show the dialog to.

dialog IDialog<TResponse>

The dialog to show to the player.

Returns

Task<TResponse>

The dialog response.

Type Parameters

TResponse

The type of the response.

Show<TResponse>(Player, IDialog<TResponse>, Action<TResponse>)

Shows the specified dialog to the player.

void Show<TResponse>(Player player, IDialog<TResponse> dialog, Action<TResponse> responseHandler) where TResponse : struct

Parameters

player Player

The player to show the dialog to.

dialog IDialog<TResponse>

The dialog to show to the player.

responseHandler Action<TResponse>

A handler for the dialog response.

Type Parameters

TResponse

The type of the response returned by the dialog.