ValidateOtp class

This is a RegisterApiTask that validates the otp which was sent as a part of RegisterAtsign to email provided in args throws AtException with concerned message which was encountered in the HTTP GET/POST request

Constructors

ValidateOtp()

Properties

hashCode int
The hash code for this object.
no setterinherited
params Map<String, String>
getter/setter pairinherited
registerUtil ↔ OnboardingUtil
getter/setter pairinherited
result ↔ RegisterApiResult
getter/setter pairinherited
retryCount int
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init(Map<String, String> params, OnboardingUtil registerUtil) → void
Initializes the Task object with necessary parameters params is a map that contains necessary data to complete atsign registration process
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() Future<RegisterApiResult>
Implementing classes need to implement required logic in this method to complete their sub-process in the AtSign registration process
shouldRetry() bool
In case the task has returned a RegisterApiResult with status retry, this method checks and returns if the call can be retried
inherited
toString() String
A string representation of this object.
inherited

Operators

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