You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
466 B

class Song(object):
def __init__(self, id: int, name: str, author: str, path: str, total_requests: int):
self.id = id
self.name = name
self.author = author
self.path = path
self.total_requests = total_requests
def get_total_requests(self) -> int:
return self.total_requests
def get_name(self) -> str:
return self.name
def get_data(self) -> bytes:
return open(self.path, 'rb').read()

Powered by INFORMATICA.FP.EDU.ES.