mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-09-28 03:26:09 +00:00
Change ProfilePatreon
to EnkaProfile
This commit is contained in:
parent
6794977515
commit
34ea345d1b
@ -3,7 +3,7 @@ from typing import List
|
||||
|
||||
from .players import PlayerInfo
|
||||
from .character import CharacterInfo
|
||||
from .profile import ProfilePatreon, ProfileOwner
|
||||
from .profile import EnkaProfile, ProfileOwner
|
||||
from .hoyos import PlayerHoyos
|
||||
|
||||
from ..utils import BASE_URL
|
||||
@ -61,5 +61,5 @@ class EnkaNetworkResponse(BaseModel):
|
||||
|
||||
class EnkaNetworkProfileResponse(BaseModel):
|
||||
username: str
|
||||
profile: ProfilePatreon
|
||||
profile: EnkaProfile
|
||||
hoyos: List[PlayerHoyos] = []
|
@ -3,7 +3,7 @@ from pydantic import BaseModel
|
||||
from ..enum import ProfileRank
|
||||
from .build import Builds
|
||||
|
||||
class ProfilePatreon(BaseModel):
|
||||
class EnkaProfile(BaseModel):
|
||||
bio: str = ''
|
||||
level: ProfileRank = ProfileRank.TIER_1
|
||||
signup_state: int = 0
|
||||
@ -12,5 +12,5 @@ class ProfilePatreon(BaseModel):
|
||||
class ProfileOwner(BaseModel):
|
||||
hash: str
|
||||
username: str
|
||||
profile: ProfilePatreon
|
||||
profile: EnkaProfile
|
||||
builds: Builds = None
|
Loading…
Reference in New Issue
Block a user