create
fun create(step: InfinityService.RegistrationStep, response: RequestRegistrationTokenResponse): InfinityRegistration
Creates a new instance of InfinityRegistration.
Return
an instance of InfinityRegistration
Parameters
step
a registration step
response
a request registration token response
Throws
if the version of Infinity is not supported
fun create(service: InfinityService, node: URL, deviceAlias: String, response: RequestRegistrationTokenResponse): InfinityRegistration
Deprecated (with error)
Use a version of this method that accepts RegistrationStep
Replace with
create(service.newRequest(node).registration(deviceAlias)), response)
Content copied to clipboard
Creates a new instance of InfinityRegistration.
Return
an instance of InfinityRegistration
Parameters
service
an instance of InfinityService
node
a URL of the node
deviceAlias
a device alias
response
a request registration token response
Throws
if the version of Infinity is not supported