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)
Sun, Nov 24, 23:48
Unknown Object (File)
Sun, Nov 24, 23:43
Unknown Object (File)
Sun, Nov 24, 22:29
Unknown Object (File)
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
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 Passed
Unit
No Test Coverage
Branch
gate (branched from master)
Build Status
Buildable 1386
Build 1634: arc lint + arc unit

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.