Class: USyncUsernameProtocol
Defined in: src/WAUSync/Protocols/USyncUsernameProtocol.ts:5
Implements
USyncQueryProtocol
Constructors
new USyncUsernameProtocol()
new USyncUsernameProtocol():
USyncUsernameProtocol
Returns
Properties
name
name:
string='username'
Defined in: src/WAUSync/Protocols/USyncUsernameProtocol.ts:6
The name of the protocol
Implementation of
USyncQueryProtocol.name
Methods
getQueryElement()
getQueryElement():
BinaryNode
Defined in: src/WAUSync/Protocols/USyncUsernameProtocol.ts:8
Defines what goes inside the query part of a USyncQuery
Returns
Implementation of
USyncQueryProtocol.getQueryElement
getUserElement()
getUserElement(
user):null|BinaryNode
Defined in: src/WAUSync/Protocols/USyncUsernameProtocol.ts:15
Defines what goes inside the user part of a USyncQuery
Parameters
user
Returns
null | BinaryNode
Implementation of
USyncQueryProtocol.getUserElement
parser()
parser(
node):null|string
Defined in: src/WAUSync/Protocols/USyncUsernameProtocol.ts:20
Parse the result of the query
Parameters
node
Returns
null | string
Whatever the protocol is supposed to return
Implementation of
USyncQueryProtocol.parser