Skip to content

ThinkingHome.Alice

ThinkingHome.Alice.Model.ActionResult

ActionResult Class

Результат выполнения команды (action_result): статус и, при ошибке, её код и описание.

csharp
public class ActionResult

Inheritance System.Object → ActionResult

Properties

ActionResult.ErrorCode Property

Код ошибки; заполняется при статусе ERROR.

csharp
public System.Nullable<ThinkingHome.Alice.Model.ActionResult.ActionResultErrorCode> ErrorCode { get; set; }

Property Value

System.Nullable<ActionResultErrorCode>

ActionResult.ErrorMessage Property

Текстовое описание ошибки.

csharp
public string ErrorMessage { get; set; }

Property Value

System.String

ActionResult.Ok Property

Успешный результат (статус DONE).

csharp
public static ThinkingHome.Alice.Model.ActionResult.ActionResult Ok { get; }

Property Value

ActionResult

ActionResult.Status Property

Статус исполнения команды: DONE или ERROR.

csharp
public ThinkingHome.Alice.Model.ActionResult.ActionResultStatus Status { get; set; }

Property Value

ActionResultStatus

Methods

ActionResult.InvalidValue(string) Method

Результат-ошибка с кодом INVALID_VALUE и необязательным описанием.

csharp
public static ThinkingHome.Alice.Model.ActionResult.ActionResult InvalidValue(string message=null);

Parameters

message System.String

Returns

ActionResult

Опубликовано под лицензией MIT