mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
14 lines
332 B
Python
14 lines
332 B
Python
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)
|