-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.py
More file actions
28 lines (21 loc) · 802 Bytes
/
Copy pathBook.py
File metadata and controls
28 lines (21 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Chapter:
"""Chapter class with Tilte of Chapter,Start,Stop"""
def __init__(self, Title: str, Start: int,Stop: int):
self.Title: str = Title
self.Stop: int = Stop
self.Start: int = Start
def setStart(self, Start: int):
self.Start = Start
def setStop(self, Stop: int):
self.Stop = Stop
class Book:
"""Book Class with Title,Author,ListOfChapters and FilePath of AudioFile"""
def __init__(self, Title: str, Author: str, Chapters: [Chapter],file:str):
self.File : str = file
self.Title: str = Title
self.Author: str = Author
self.Chapters: [Chapter] = Chapters
def setChapters(self, Chapters: [Chapter]):
self.Chapters = Chapters
def getChapters(self):
return self.Chapters