mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +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 .players import PlayerInfo
|
||||||
from .character import CharacterInfo
|
from .character import CharacterInfo
|
||||||
from .profile import ProfilePatreon, ProfileOwner
|
from .profile import EnkaProfile, ProfileOwner
|
||||||
from .hoyos import PlayerHoyos
|
from .hoyos import PlayerHoyos
|
||||||
|
|
||||||
from ..utils import BASE_URL
|
from ..utils import BASE_URL
|
||||||
@ -61,5 +61,5 @@ class EnkaNetworkResponse(BaseModel):
|
|||||||
|
|
||||||
class EnkaNetworkProfileResponse(BaseModel):
|
class EnkaNetworkProfileResponse(BaseModel):
|
||||||
username: str
|
username: str
|
||||||
profile: ProfilePatreon
|
profile: EnkaProfile
|
||||||
hoyos: List[PlayerHoyos] = []
|
hoyos: List[PlayerHoyos] = []
|
@ -3,7 +3,7 @@ from pydantic import BaseModel
|
|||||||
from ..enum import ProfileRank
|
from ..enum import ProfileRank
|
||||||
from .build import Builds
|
from .build import Builds
|
||||||
|
|
||||||
class ProfilePatreon(BaseModel):
|
class EnkaProfile(BaseModel):
|
||||||
bio: str = ''
|
bio: str = ''
|
||||||
level: ProfileRank = ProfileRank.TIER_1
|
level: ProfileRank = ProfileRank.TIER_1
|
||||||
signup_state: int = 0
|
signup_state: int = 0
|
||||||
@ -12,5 +12,5 @@ class ProfilePatreon(BaseModel):
|
|||||||
class ProfileOwner(BaseModel):
|
class ProfileOwner(BaseModel):
|
||||||
hash: str
|
hash: str
|
||||||
username: str
|
username: str
|
||||||
profile: ProfilePatreon
|
profile: EnkaProfile
|
||||||
builds: Builds = None
|
builds: Builds = None
|
Loading…
Reference in New Issue
Block a user