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
Unknown Object (File)
Thu, Dec 12, 03:43
Unknown Object (File)
Tue, Dec 10, 15:26
Unknown Object (File)
Mon, Dec 9, 06:07
Unknown Object (File)
Wed, Dec 4, 12:56
Unknown Object (File)
Sun, Dec 1, 19:28
Unknown Object (File)
Nov 24 2024, 23:48
Unknown Object (File)
Nov 24 2024, 23:43
Unknown Object (File)
Nov 24 2024, 22:29
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.