Skip to content

Encounter

pokelance.models.abstract.encounter ⚓︎

EncounterCondition ⚓︎

Bases: BaseModel

An encounter condition resource.

Attributes:

Name Type Description
id int

The identifier for this encounter condition resource.

name str

The name for this encounter condition resource.

names List[Name]

The name of this encounter condition listed in different languages.

values List[NamedResource]

A list of possible values for this encounter condition.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

EncounterConditionValue ⚓︎

Bases: BaseModel

An encounter condition value resource.

Attributes:

Name Type Description
id int

The identifier for this encounter condition value resource.

name str

The name for this encounter condition value resource.

condition NamedResource

The condition this encounter condition value pertains to.

names List[Name]

The name of this encounter condition value listed in different languages.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

EncounterMethod ⚓︎

Bases: BaseModel

An encounter method resource.

Attributes:

Name Type Description
id int

The identifier for this encounter method resource.

name str

The name for this encounter method resource.

order int

A good value for sorting.

names List[Name]

The name of this encounter method listed in different languages.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)