HomeDevCentral

Allow a gate to accept payloads for several services

Description

Allow a gate to accept payloads for several services

Summary:
To accept notifications in native format, plan is to have one gate.
This gate will so receive payloads from different services, and this
service will be available in the payload (in the service property).

Currently, service name is hardcoded as a SERVICE_NAME constant.
Instead, each gate will provide a custom getServiceName() method.

Gates for one service (ie all our current gates) now have such methods
to return the same string than the former SERVICE_NAME value.

More complex gates will customize this logic.

Ref T979

Test Plan: Tested with success with D871 code

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T979

Differential Revision: https://devcentral.nasqueron.org/D897

Details

Provenance
derecksonAuthored on Jan 31 2017, 02:07
Reviewer
dereckson
Differential Revision
D897: Allow a gate to accept payloads for several services
Parents
rNOTIF36fee9f2c5a0: Bump jsonmapper to v1.1.1
Branches
Unknown
Tags
Unknown
Tasks
T979: Gate for notifications in notifications format