Skip to main content

Class: USyncUsernameProtocol

Defined in: src/WAUSync/Protocols/USyncUsernameProtocol.ts:5

Implements

  • USyncQueryProtocol

Constructors

new USyncUsernameProtocol()

new USyncUsernameProtocol(): USyncUsernameProtocol

Returns

USyncUsernameProtocol

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

BinaryNode

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

USyncUser

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

BinaryNode

Returns

null | string

Whatever the protocol is supposed to return

Implementation of

USyncQueryProtocol.parser