Skip to content

Upgrade Models

upgrade

Classes:

  • Upgrade –

    Represents upgrade information for a character or weapon type.

  • UpgradeData –

    Container for character and weapon upgrade data.

  • UpgradeItem –

    Represents an item required for an upgrade.

Upgrade pydantic-model

Represents upgrade information for a character or weapon type.

Attributes:

  • id (str) –

    The ID of the character or weapon.

  • name (str | None) –

    The name of the character or weapon (optional).

  • icon (str) –

    The icon URL of the character or weapon.

  • items (list[UpgradeItem]) –

    A list of items required for the upgrade.

Fields:

Validators:

  • _convert_icon_url → icon
  • _convert_items → items

icon pydantic-field

icon: str

id pydantic-field

id: str

items pydantic-field

items: list[UpgradeItem]

name pydantic-field

name: str | None = None

UpgradeData pydantic-model

Container for character and weapon upgrade data.

Attributes:

Fields:

Validators:

character pydantic-field

character: list[Upgrade]

weapon pydantic-field

weapon: list[Upgrade]

UpgradeItem pydantic-model

Represents an item required for an upgrade.

Attributes:

Fields:

id pydantic-field

id: int

rarity pydantic-field

rarity: int