mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-01-22 07:44:28 +01:00
Improves the dummy watcher logic. Sets a proper structure. Watcher can now check for potential matches and handle multiple appointments with the same locator (hash collisions).
11 lines
305 B
Python
11 lines
305 B
Python
# Basic appointment structure
|
|
class Appointment:
|
|
def __init__(self, locator, start_time, end_time, encrypted_blob, cypher):
|
|
self.locator = locator
|
|
self.start_time = start_time
|
|
self.end_time = end_time
|
|
self.encrypted_blob = encrypted_blob
|
|
self.cypher = cypher
|
|
|
|
|