mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
Add IconAsset class
This commit is contained in:
parent
5860e2ddea
commit
9353d10ba0
13
enkanetwork/model/utils.py
Normal file
13
enkanetwork/model/utils.py
Normal file
@ -0,0 +1,13 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import Any
|
||||
|
||||
from ..utils import create_ui_path
|
||||
|
||||
class IconAsset(BaseModel):
|
||||
filename: str = ""
|
||||
url: str = ""
|
||||
|
||||
def __init__(__pydantic_self__, **data: Any) -> None:
|
||||
super().__init__(**data)
|
||||
|
||||
__pydantic_self__.url = create_ui_path(__pydantic_self__.filename)
|
Loading…
Reference in New Issue
Block a user