Skip to main content

USyncDeviceProtocol

amiudmodz


amiudmodz / USyncDeviceProtocol

Class: USyncDeviceProtocol

Defined in: src/WAUSync/Protocols/USyncDeviceProtocol.ts:22

Implements​

  • USyncQueryProtocol

Constructors​

new USyncDeviceProtocol()​

new USyncDeviceProtocol(): USyncDeviceProtocol

Returns​

USyncDeviceProtocol

Properties​

name​

name: string = 'devices'

Defined in: src/WAUSync/Protocols/USyncDeviceProtocol.ts:23

The name of the protocol

Implementation of​

USyncQueryProtocol.name

Methods​

getQueryElement()​

getQueryElement(): BinaryNode

Defined in: src/WAUSync/Protocols/USyncDeviceProtocol.ts:25

Defines what goes inside the query part of a USyncQuery

Returns​

BinaryNode

Implementation of​

USyncQueryProtocol.getQueryElement


getUserElement()​

getUserElement(): null | BinaryNode

Defined in: src/WAUSync/Protocols/USyncDeviceProtocol.ts:34

Defines what goes inside the user part of a USyncQuery

Returns​

null | BinaryNode

Implementation of​

USyncQueryProtocol.getUserElement


parser()​

parser(node): ParsedDeviceInfo

Defined in: src/WAUSync/Protocols/USyncDeviceProtocol.ts:41

Parse the result of the query

Parameters​

node​

BinaryNode

Returns​

ParsedDeviceInfo

Whatever the protocol is supposed to return

Implementation of​

USyncQueryProtocol.parser