mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-09 12:37:22 +00:00
21 lines
455 B
Python
21 lines
455 B
Python
from dataclasses import dataclass
|
|
from app import models
|
|
|
|
|
|
@dataclass
|
|
class Playlist:
|
|
playlistid: str
|
|
name: str
|
|
image: str
|
|
lastUpdated: int
|
|
description: str
|
|
count: int = 0
|
|
|
|
def __init__(self, p: models.Playlist) -> None:
|
|
self.playlistid = p.playlistid
|
|
self.name = p.name
|
|
self.image = p.image
|
|
self.lastUpdated = p.lastUpdated
|
|
self.description = p.description
|
|
self.count = p.count
|