mirror of
https://github.com/SantaSpeen/anixart.git
synced 2026-10-28 15:00:02 +00:00
[+] profile.objects.PROFILE
[+] profile.objects.PROFILE_NICK_HISTORY
This commit is contained in:
1 parent
dd550855c0
commit
c68735df97
4 files changed
+126
-1
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
from .__meta__ import *
|
from .__meta__ import *
|
||||||
|
|
||||||
from .api import AnixartAPI
|
from .api import AnixartAPI
|
||||||
from .auth import AnixartAccount, AnixartAccountToken, AnixartAccountSaved
|
from .auth import AnixartAccount, AnixartAccountGuest, AnixartAccountSaved
|
||||||
|
|
||||||
from .endpoints import *
|
from .endpoints import *
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
from .objects import Profile, ProfileVote, ProfileRoles, ProfileHistory, ProfileFriendsPreview
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
from enum import IntEnum
|
||||||
|
|
||||||
|
|
||||||
|
class AnixartProfileErrors(IntEnum):
|
||||||
|
""" Error codes for AnixartApi authentication."""
|
||||||
|
PROFILE_NOT_FOUND = 2
|
||||||
|
|
||||||
|
|
||||||
|
def errors_handler(error):
|
||||||
|
"""Handle errors and return a JSON response."""
|
||||||
|
pass
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
from dataclasses import dataclass
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class ProfileHistory:
|
||||||
|
# TODO: Надо ещё изучить релизы
|
||||||
|
pass
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class ProfileVote:
|
||||||
|
# TODO: Надо ещё изучить релизы
|
||||||
|
pass
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class ProfileRoles:
|
||||||
|
# TODO: Надо ещё изучить роли (У меня их нет(()
|
||||||
|
pass
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class ProfileFriendsPreview:
|
||||||
|
id: int
|
||||||
|
avatar: str
|
||||||
|
login: str
|
||||||
|
friend_count: int
|
||||||
|
friend_status: int
|
||||||
|
is_sponsor: bool
|
||||||
|
is_online: bool
|
||||||
|
is_verified: bool
|
||||||
|
is_social: bool
|
||||||
|
badge_id: None
|
||||||
|
badge_name: None
|
||||||
|
badge_type: None
|
||||||
|
badge_url: None
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class Profile:
|
||||||
|
id: int
|
||||||
|
login: str
|
||||||
|
avatar: str
|
||||||
|
status: str
|
||||||
|
rating_score: int
|
||||||
|
history: list[ProfileHistory]
|
||||||
|
votes: list[ProfileVote]
|
||||||
|
roles: list[ProfileRoles]
|
||||||
|
friends_preview: list[ProfileFriendsPreview]
|
||||||
|
collections_preview: list # TODO: Коллекции изучить
|
||||||
|
release_comments_preview: list # Тут вообще не понял
|
||||||
|
comments_preview: list # Тут типа превью к коментам
|
||||||
|
release_videos_preview: list # Тут вообще не понял
|
||||||
|
watch_dynamics: list # Тут вообще не понял
|
||||||
|
last_activity_time: int
|
||||||
|
register_date: int
|
||||||
|
vk_page: str
|
||||||
|
tg_page: str
|
||||||
|
inst_page: str
|
||||||
|
tt_page: str
|
||||||
|
discord_page: str
|
||||||
|
ban_expires: int
|
||||||
|
ban_reason: str
|
||||||
|
privilege_level: int
|
||||||
|
watching_count: int
|
||||||
|
plan_count: int
|
||||||
|
completed_count: int
|
||||||
|
hold_on_count: int
|
||||||
|
dropped_count: int
|
||||||
|
favorite_count: int
|
||||||
|
comment_count: int
|
||||||
|
collection_count: int
|
||||||
|
video_count: int
|
||||||
|
friend_count: int
|
||||||
|
subscription_count: int
|
||||||
|
watched_episode_count: int
|
||||||
|
watched_time: int
|
||||||
|
sponsorshipExpires: int
|
||||||
|
is_private: bool
|
||||||
|
is_sponsor: bool
|
||||||
|
is_banned: bool
|
||||||
|
is_perm_banned: bool
|
||||||
|
is_bookmarks_transferred: bool
|
||||||
|
is_sponsor_transferred: bool
|
||||||
|
is_vk_bound: bool
|
||||||
|
is_google_bound: bool
|
||||||
|
is_release_type_notifications_enabled: bool
|
||||||
|
is_episode_notifications_enabled: bool
|
||||||
|
is_first_episode_notification_enabled: bool
|
||||||
|
is_related_release_notifications_enabled: bool
|
||||||
|
is_report_process_notifications_enabled: bool
|
||||||
|
is_comment_notifications_enabled: bool
|
||||||
|
is_my_collection_comment_notifications_enabled: bool
|
||||||
|
is_my_article_comment_notifications_enabled: bool
|
||||||
|
is_verified: bool
|
||||||
|
is_blocked: bool
|
||||||
|
is_me_blocked: bool
|
||||||
|
is_stats_hidden: bool
|
||||||
|
is_counts_hidden: bool
|
||||||
|
is_social_hidden: bool
|
||||||
|
is_friend_requests_disallowed: bool
|
||||||
|
is_online: bool
|
||||||
|
badge: None
|
||||||
|
friend_status: None
|
||||||
|
|
||||||
|
is_my_profile: bool = False
|
||||||
|
|
||||||
|
class _login:
|
||||||
|
pos_id: int
|
||||||
|
id: int
|
||||||
|
newLogin: str
|
||||||
|
timestamp: int
|
||||||
|
|
||||||
|
class ProfileLoginsHistory:
|
||||||
|
content: list[_login]
|
||||||
|
total_count: int
|
||||||
|
# total_page_count: int
|
||||||
|
# current_page: int
|
||||||
Reference in new issue
Block a user