REST.Backend.PushTypes.TBackendPushApi.PushToTarget
Delphi
procedure PushToTarget(const AData: TPushData; const ATarget: TJSONObject); overload;
procedure PushToTarget(const AData: TJSONObject; const ATarget: TJSONObject); overload;
C++
void __fastcall PushToTarget(TPushData* const AData, System::Json::TJSONObject* const ATarget)/* overload */;
void __fastcall PushToTarget(System::Json::TJSONObject* const AData, System::Json::TJSONObject* const ATarget)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | REST.Backend.PushTypes.pas REST.Backend.PushTypes.hpp |
REST.Backend.PushTypes | TBackendPushApi |
Description
Sends the specified notification data to the specified target.
You can specify the AData parameter as TPushData or as a TJSONObject and the ATarget parameter as a TJSONObject.
PushToTarget checks if the provider supports the IBackendPushApi3 interface.
If yes, PushToTarget calls IBackendPushApi3.PushToTarget.
Otherwise, PushToTarget checks the value of the ATarget parameter:
- If you specify
ADataas TPushData and pass anilvalue as theATargetparameter, PushToTarget calls IBackendPushApi.PushBroadcast. - Otherwise, PushToTarget raises an exception.
Exceptions
A call to PushToTarget may raise the following exception:
| Exception | Exception.Message | Scenarios |
|---|---|---|
|
Provider does not support this operation |
|