4 Commits

Author SHA1 Message Date
f8e1012f3e Merge branch 'main' into Video_class 2025-02-18 19:38:46 +01:00
a3c5b350fc Added Video class to types.py. 2025-02-18 19:37:01 +01:00
0279f667b3 Added Video class to the diagram 2025-02-18 18:36:35 +01:00
0a5e98f417 Added a uml diagram. 2025-02-18 18:03:34 +01:00
2 changed files with 1153 additions and 0 deletions

1119
design/design.gaphor Normal file

File diff suppressed because it is too large Load Diff

34
shadowtube/types.py Normal file
View File

@@ -0,0 +1,34 @@
class Video:
def __init__(
self,
id: str,
title: str,
description: str,
watch_time: float,
watch_progress: float,
):
self._id = id
self._title = title
self._description = description
self._watch_time = watch_time
self._watch_progress = watch_progress
@property
def title(self):
return self._title
@property
def id(self):
return self._id
@property
def description(self):
return self._description
@property
def watch_time(self):
return self._watch_time
@property
def watch_progress(self):
return self._watch_progress