-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data model for room reservation implemented
- Loading branch information
1 parent
9ca5192
commit 692e843
Showing
10 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
from .dialogs_helper import DialogHelper | ||
from .example import UserProfileDialog | ||
from .room_reservation_dialog import RoomReservationDialog | ||
|
||
__all__ = ["DialogHelper", "UserProfileDialog"] | ||
__all__ = ["RoomReservationDialog"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
from .user_profile import UserProfile | ||
from .room_reservation import RoomReservation | ||
|
||
__all__ = ["UserProfile"] | ||
__all__ = ["RoomReservation"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
class RoomReservation: | ||
"""Hotel's room reservation state.""" | ||
|
||
def __init__(self, people: int = None, duration: int = None, breakfast: bool = None): | ||
|
||
self.people: int = people # Number of people | ||
self.duration: int = duration # Number of nights | ||
self.breakfast: bool = breakfast # If they take breakfast |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
from .dialogs_helper import DialogHelper | ||
|
||
__all__ = ["DialogHelper"] |
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters