Table of Contents

TTMSMCPTask.ToJSON Method

Builds the status representation of the task that is sent to the client.

API unit family: TMS.MCP.Tasks Declaring type: TTMSMCPTask

Syntax

function ToJSON: TJSONObject;

Returns

A new object holding the identifier, the state, the creation and last-update moments as timestamps, the lifetime, the poll interval and the method name. The status message is added only when it has been set, and the owning session identifier is deliberately left out. The caller owns the returned object.