Skip to content

Commit

Permalink
fix: ref configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
devraj committed Dec 20, 2023
1 parent 09f6ee7 commit b8efb17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
4 changes: 3 additions & 1 deletion gallagher/dto/ref/zone.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from ..utils import (
AppBaseModel,
HrefMixin
IdentityMixin,
HrefMixin,
)


class AccessZoneRef(
AppBaseModel,
IdentityMixin,
HrefMixin
):
""" AccessZone represents
Expand Down
15 changes: 9 additions & 6 deletions gallagher/dto/response/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
AlarmRef,
CardholderRef,
DoorRef,
AccessZoneRef,
DivisionRef,
)

from ..summary import (
EventGroupSummary,
EventTypeSummary,
CardholderSummary,
)


Expand All @@ -34,13 +37,13 @@ class EventSummaryResponse(

operator: CardholderRef
source: str
group: str
type: str
group: EventGroupSummary
type: EventTypeSummary
event_type: EventTypeSummary
division: str
cardholder: str
entry_access_zone: str
exit_access_zone: str
division: DivisionRef
cardholder: CardholderSummary
entry_access_zone: AccessZoneRef
exit_access_zone: AccessZoneRef
door: DoorRef
access_group: HrefMixin
card: str
Expand Down
4 changes: 3 additions & 1 deletion gallagher/dto/summary/cardholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
from ..utils import (
AppBaseModel,
IdentityMixin,
HrefMixin,
)


class CardholderSummary(
AppBaseModel,
IdentityMixin
IdentityMixin,
HrefMixin,
):
"""
The cardholder search at /api/cardholders returns an array of these.
Expand Down

0 comments on commit b8efb17

Please sign in to comment.