REST.Backend.PushTypes.TBackendPushApi.PushDataAsJSON

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PushDataAsJSON(const AData: TPushData): TJSONObject;

C++

System::Json::TJSONObject* __fastcall PushDataAsJSON(TPushData* const AData);

Properties

Type Visibility Source Unit Parent
function public
REST.Backend.PushTypes.pas
REST.Backend.PushTypes.hpp
REST.Backend.PushTypes TBackendPushApi

Description

Accepts a TPushData object and returns its TJSONObject representation.

PushDataAsJSON checks if the provider supports the IBackendPushApi2 interface. If yes, PushDataAsJSON calls IBackendPushApi2.PushDataAsJSON. Otherwise, PushDataAsJSON raises an exception.

Exceptions

A call to PushDataAsJSON may raise the following exception:

Exception Exception.Message Scenarios

ENotSupportedException

Provider does not support this operation

  • The current provider does not support this operation.

See Also