further implementations

This commit is contained in:
Kamil
2024-11-29 20:49:36 +00:00
parent f81188f7e3
commit 7232b3223d
2 changed files with 310 additions and 65 deletions

View File

@@ -2,6 +2,8 @@ from dataclasses import dataclass, field
from typing import List, Optional
from abc import ABC, abstractmethod
@dataclass
class ExternalUrl:
url: str
@@ -12,6 +14,26 @@ class ItemBase:
name: str
uri: str
external_urls: Optional[List[ExternalUrl]]
@dataclass
class Profile:
avatar: Optional[str] # Avatar URL or None
avatar_background_color: Optional[int]
name: str
uri: str
username: str
@dataclass
class AccountAttributes:
catalogue: str
dsa_mode_available: bool
dsa_mode_enabled: bool
multi_user_plan_current_size: Optional[int]
multi_user_plan_member_type: Optional[str]
on_demand: bool
opt_in_trial_premium_only_market: bool
country: str
product: str
@dataclass
class Image: