Module genshin.models.auth.qrcode

Miyoushe QR Code Models

Classes

class QRCodeCreationResult (**data: Any)
Expand source code
class QRCodeCreationResult(pydantic.BaseModel):
    """QR code creation result."""

    ticket: str
    url: str

QR code creation result.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Ancestors

  • pydantic.main.BaseModel

Class variables

var model_config
var ticket : str
var url : str
class QRCodeStatus (value, names=None, *, module=None, qualname=None, type=None, start=1)
Expand source code
class QRCodeStatus(enum.Enum):
    """QR code check status."""

    CREATED = "Created"
    SCANNED = "Scanned"
    CONFIRMED = "Confirmed"

QR code check status.

Ancestors

  • enum.Enum

Class variables

var CONFIRMED
var CREATED
var SCANNED