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
F3776922: D897.id2280.diff
Sun, Nov 24, 23:48
F3776899: D897.id2281.diff
Sun, Nov 24, 23:43
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
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 1385
Build 1633: 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.