created design pattern
This commit is contained in:
27
ApiServices/BuildingService/Events/building/cluster.py
Normal file
27
ApiServices/BuildingService/Events/building/cluster.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from ApiControllers.abstracts.event_clusters import EventCluster, RouterCluster
|
||||
from .supers_events import (
|
||||
BuildingListEvent,
|
||||
BuildingCreateEvent,
|
||||
BuildingUpdateEvent,
|
||||
)
|
||||
|
||||
BuildRouterCluster = RouterCluster(name="BuildRouterCluster")
|
||||
|
||||
BuildEventClusterList = EventCluster(
|
||||
name="BuildList", endpoint_uu_id="1a186985-ed2a-434b-af28-22d6773382e9"
|
||||
)
|
||||
BuildEventClusterList.add_event(BuildingListEvent)
|
||||
|
||||
BuildEventClusterCreate = EventCluster(
|
||||
name="BuildCreate", endpoint_uu_id="d545c5a9-bbbf-4795-a4de-467db0809a04"
|
||||
)
|
||||
BuildEventClusterCreate.add_event(BuildingCreateEvent)
|
||||
|
||||
BuildEventClusterUpdate = EventCluster(
|
||||
name="BuildUpdate", endpoint_uu_id="6166a28e-8da8-4a2c-96c8-0a1651739cf3"
|
||||
)
|
||||
BuildEventClusterUpdate.add_event(BuildingUpdateEvent)
|
||||
|
||||
BuildRouterCluster.set_event_cluster(BuildEventClusterList)
|
||||
BuildRouterCluster.set_event_cluster(BuildEventClusterCreate)
|
||||
BuildRouterCluster.set_event_cluster(BuildEventClusterUpdate)
|
||||
Reference in New Issue
Block a user