Page MenuHomeDevCentral

Allow a gate to accept payloads for several services
ClosedPublic

Authored by dereckson on Jan 31 2017, 02:12.
Tags
None
Referenced Files
F3776447: D897.id2279.diff
Sun, Nov 24, 22:29
F3775946: D897.diff
Sun, Nov 24, 20:28
Unknown Object (File)
Mon, Nov 18, 13:04
Unknown Object (File)
Mon, Nov 18, 06:25
Unknown Object (File)
Sun, Nov 17, 23:15
Unknown Object (File)
Mon, Nov 11, 05:33
Unknown Object (File)
Mon, Nov 11, 03:01
Unknown Object (File)
Sun, Nov 10, 18:56
Subscribers
None

Details

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

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from Define GateController::getServiceName to Allow a gate to accept payloads for several services.
dereckson edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Jan 31 2017, 02:24
This revision was automatically updated to reflect the committed changes.