diff --git a/ooad-docs/03_Facade_Pattern.png b/ooad-docs/03_Facade_Pattern.png index c676d07..cc8bd33 100644 Binary files a/ooad-docs/03_Facade_Pattern.png and b/ooad-docs/03_Facade_Pattern.png differ diff --git a/ooad-docs/03_Facade_Pattern.puml b/ooad-docs/03_Facade_Pattern.puml index 027304f..13cc0c7 100644 --- a/ooad-docs/03_Facade_Pattern.puml +++ b/ooad-docs/03_Facade_Pattern.puml @@ -75,6 +75,12 @@ package "③ Facade Pattern [Structural]" #FFF8E1 { class "LocationService\n<>" as LocationService <> class "ActivityLogService\n<>" as ActivityService <> class "SosService\n<>" as SosServiceFacade <> + class "NotificationService\n<>" as NotifServiceFacade <> + + class "GuardianDashboardController\n<>" as GuardianDashboardController { + + getDashboard(guardianId) : ResponseEntity + ' GET /api/v1/guardian/dashboard + } WalkGuideBlocFacade --> VoiceCommandHandler : processText() VoiceCommandHandler --> SttServiceFacade : delegates @@ -82,9 +88,11 @@ package "③ Facade Pattern [Structural]" #FFF8E1 { VoiceCommandHandler --> GoRouterFacade : delegates VoiceCommandHandler --> SosBlocFacade : delegates + GuardianDashboardController --> GuardianDashboardService : getDashboard() GuardianDashboardService --> LocationService : aggregates GuardianDashboardService --> ActivityService : aggregates GuardianDashboardService --> SosServiceFacade : aggregates + GuardianDashboardService --> NotifServiceFacade : aggregates } note right of VoiceCommandHandler @@ -94,4 +102,11 @@ note right of VoiceCommandHandler → route navigation → BLoC event dispatch end note +note right of GuardianDashboardService + Client (Controller) hanya panggil getDashboard(guardianId) + Facade mengagregasi 4 service sekaligus: + location + activity + SOS + notification + → satu response, satu request dari Flutter +end note + @enduml