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)
Tue, Apr 23, 00:18
Unknown Object (File)
Sun, Apr 21, 21:45
Unknown Object (File)
Fri, Apr 19, 08:44
Unknown Object (File)
Thu, Apr 18, 08:17
Unknown Object (File)
Thu, Apr 18, 08:17
Unknown Object (File)
Thu, Apr 18, 08:17
Unknown Object (File)
Thu, Apr 18, 08:17
Unknown Object (File)
Wed, Apr 17, 23: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.