pyspj.models.simple¶
SimpleSPJResult¶
-
class
pyspj.models.simple.
SimpleSPJResult
(correctness: bool, message: Optional[str] = None, detail: Optional[str] = None, **kwargs)[source]¶ - Overview:
Result of simple special judge.
-
__eq__
(other)¶ Return self==value.
-
__hash__
()¶ Return hash(self).
-
__init__
(correctness: bool, message: Optional[str] = None, detail: Optional[str] = None, **kwargs)¶ Constructor for
pyspj.models.base.SPJResult
.- Parameters
correctness – correctness of result
message – message of result
detail – detail of result
-
__repr__
()¶ Get representation format of current result object.
- Returns
Representation string.
-
property
correctness
¶ Correctness of this result.
-
property
detail
¶ Detail information of this result.
-
property
message
¶ Message of this result.
-
to_json
() → Mapping[str, str]¶ Get JSON-formatted result data.
- Returns
A json for the current result data.