BaseEJSSolver class abstract

Base class for EJS solvers that handles common caching and parsing logic. Subclasses must implement executeJavaScript to provide the JS engine-specific execution.

Inheritance
Implementers

Constructors

BaseEJSSolver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
inherited
executeJavaScript(String jsCode) Future<String>
Executes JavaScript code and returns the JSON string result.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
solve(String playerUrl, JSChallengeType type, String challenge) Future<String>
Solves a single JavaScript challenge of the specified type. Returns the solved challenge as a string.
override
solveBulk(String playerUrl, Map<JSChallengeType, List<String>> requests) Future<Map<String, String?>>
Solves JavaScript challenges in bulk. The requests parameter is a map where the key is the type of challenge and the value is a list of challenge strings to be solved.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited