REST.Backend.PushTypes.TBackendPushApi.PushDataAsJSON
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 |
---|---|---|
Provider does not support this operation |
|