EMS.Services.TEMSInternalAPI.PushToTarget
Delphi
function PushToTarget(const AData: TJSONObject; const ATarget: TJSONObject): IEMSResourceResponseContent;
C++
_di_IEMSResourceResponseContent __fastcall PushToTarget(System::Json::TJSONObject* const AData, System::Json::TJSONObject* const ATarget);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | EMS.Services.pas EMS.Services.hpp |
EMS.Services | TEMSInternalAPI |
Description
Envoie un message de notification push EMS à une installation EMS particulière.
La méthode PushToTarget envoie le message AData
et identifie l'installation EMS cible par le paramètre ATarget
.
Le paramètre ATarget
est un TJSONObject qui contient :
- Les canaux EMS :
{"channels": ["a","b"]}"}
- Un filtre :
{"where":{"email":"xyz@xmail.com"}}
- Une combinaison de canaux EMS et de filtres.
PushToTarget renvoie un IEMSResourceResponseContent pour lire la réponse de la ressource.