Class TakaroEventPlayerNewIpDetected

Generic Data Transfer Object, used widely in Takaro to pass data back and forth between components Allows validation of properties when instantiated and JSON (de)serialization

Hierarchy (View Summary)

Constructors

Properties

city: string
country: string
ip: string
latitude: string
longitude: string
timestamp: string = ...
type: "player-new-ip-detected" = TakaroEvents.PLAYER_NEW_IP_DETECTED

Methods

  • Returns Record<string, any>

  • Validates the DTO instance

    Parameters

    • OptionalextraOpts: ValidatorOptions

    Returns Promise<void>

    if validation fails