-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added LessonEntry class(usage not implemented yet)
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from petersbugredu_wrap.types.identity import Identity | ||
from petersbugredu_wrap.types.task import Task | ||
|
||
|
||
class LessonEntry: | ||
def __init__(self, identity: Identity, number: int, datetime_from: str, datetime_to: str, subject_id: int, | ||
subject_name: str, content_name: str, content_description, content_additional_material, | ||
tasks: list[Task], estimates: list, action_payload): | ||
""" | ||
Class represents lesson entry in API | ||
:param identity: | ||
:param number: | ||
:param datetime_from: | ||
:param datetime_to: | ||
:param subject_id: | ||
:param subject_name: | ||
:param content_name: | ||
:param content_description: | ||
:param content_additional_material: | ||
:param tasks: | ||
:param estimates: | ||
:param action_payload: | ||
""" | ||
|
||
self.action_payload = action_payload | ||
self.estimates = estimates | ||
self.tasks = tasks | ||
self.content_additional_material = content_additional_material | ||
self.content_description = content_description | ||
self.content_name = content_name | ||
self.subject_name = subject_name | ||
self.subject_id = subject_id | ||
self.datetime_to = datetime_to | ||
self.datetime_from = datetime_from | ||
self.number = number | ||
self.identity = identity | ||
raise NotImplementedError |