Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e617bc85 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi
Browse files

Refactor SoundTriggerMiddlewareService

This change extracts the client validation as a decorator of
ISoundTriggerMiddlewareService, called
SoundTriggerMiddlewareValidation and leaves
SoundTriggerMiddlewareService to be a mere adapter between an
implementation of ISoundTriggerMiddlewareService and a service stub
and facilities for plumbing as a system service.

This results in a cleaner separation of concerns and also paves the
way for more decorators (logging is planned) to be easily added.

Change-Id: Ia257021d19c5e6ab6509e85a62173a55f2cf8f7a
Merged-In: Ia257021d19c5e6ab6509e85a62173a55f2cf8f7a
Bug: 150325756
parent 91ae0d0d
Loading
Loading
Loading
Loading
+66 −634

File changed.

Preview size limit exceeded, changes collapsed.

+745 −0

File added.

Preview size limit exceeded, changes collapsed.