-
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.
- Loading branch information
1 parent
b867575
commit cb43afb
Showing
2 changed files
with
43 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
""" | ||
SoundCld Is Soundcloud-v2 api handler | ||
""" | ||
from .api_handler import SoundCloud | ||
import soundcld.resource.playlist_album | ||
import soundcld.resource.track | ||
import soundcld.resource.user | ||
import soundcld.resource.webprofiles | ||
import soundcld.resource.visual | ||
import soundcld.resource.comments | ||
from .api_handler import SoundCloud | ||
|
||
__version__ = '1.0' |
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,41 @@ | ||
""" | ||
Comments Object | ||
""" | ||
import datetime | ||
from dataclasses import dataclass | ||
|
||
from soundcld.resource.base import BaseData | ||
from soundcld.resource.track import CommentTrack | ||
from soundcld.resource.user import BasicUser | ||
|
||
|
||
@dataclass | ||
class CommentSelf(BaseData): | ||
""" | ||
Comment Link | ||
""" | ||
urn: str | ||
|
||
|
||
@dataclass | ||
class BasicComment(BaseData): | ||
""" | ||
Comment without a specified track | ||
""" | ||
kind: str | ||
id: int | ||
body: str | ||
created_at: datetime.datetime | ||
timestamp: int | ||
track_id: int | ||
user_id: int | ||
self: CommentSelf | ||
user: BasicUser | ||
|
||
|
||
@dataclass | ||
class Comment(BasicComment): | ||
""" | ||
Comment with a specified track | ||
""" | ||
track: CommentTrack |