Skip to main content

Class: USyncContactProtocol

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

Implements

  • USyncQueryProtocol

Constructors

new USyncContactProtocol()

new USyncContactProtocol(): USyncContactProtocol

Returns

USyncContactProtocol

Properties

name

name: string = 'contact'

Defined in: src/WAUSync/Protocols/USyncContactProtocol.ts:6

The name of the protocol

Implementation of

USyncQueryProtocol.name

Methods

getQueryElement()

getQueryElement(): BinaryNode

Defined in: src/WAUSync/Protocols/USyncContactProtocol.ts:8

Defines what goes inside the query part of a USyncQuery

Returns

BinaryNode

Implementation of

USyncQueryProtocol.getQueryElement


getUserElement()

getUserElement(user): BinaryNode

Defined in: src/WAUSync/Protocols/USyncContactProtocol.ts:15

Defines what goes inside the user part of a USyncQuery

Parameters

user

USyncUser

Returns

BinaryNode

Implementation of

USyncQueryProtocol.getUserElement


parser()

parser(node): boolean

Defined in: src/WAUSync/Protocols/USyncContactProtocol.ts:24

Parse the result of the query

Parameters

node

BinaryNode

Returns

boolean

Whatever the protocol is supposed to return

Implementation of

USyncQueryProtocol.parser