System.Tether.AppProfile.TRemoteResource.ToBytes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ToBytes: TBytes;

C++

System::DynamicArray<System::Byte> __fastcall ToBytes();

Properties

Type Visibility Source Unit Parent
function public
System.Tether.AppProfile.pas
System.Tether.AppProfile.hpp
System.Tether.AppProfile TRemoteResource

Description

Returns a JSON representation of the remote resource as an array of bytes.

The JSON representation consists of an object that contains the following data:

Key Value

ResourceType

Instance of TJSONNumber that contains the integer that identifies the type of data of the remote resource.

DataType

Instance of TJSONNumber that contains the integer that identifies the type of data of the value that the remote resource contains.

Value

Value that the remote resource contains.

Value is an instance of TJSONNumber if the value is an integer number, a floating-point number or a boolean (0 is False, 1 is True), or an instance of TJSONString if the value is a string.

See Also