Class: Drivers

appLib/SDKDrivers/xFrameDriver/drivers.Drivers

Drivers repository.

The Drivers class allows the user to manage drivers and their properties.

Hierarchy

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new Drivers(agent)

Creates an instance of Repository.

Parameters

Name Type
agent PeerAgent

Inherited from

Repository.constructor

Methods

crudReq

crudReq(data): void

Sends a CRUD request to the xFrame.

Parameters

Name Type
data any

Returns

void

Inherited from

Repository.crudReq


crudReqSync

crudReqSync(data, options?): Promise<any>

Sends a CRUD request to the xFrame.

Parameters

Name Type Description
data any The data to send.
options Object
options.timeout? number an option to set the timeout for the request.

Returns

Promise<any>

Inherited from

Repository.crudReqSync


query

query(): Promise<IPagedResponse<SDKDriver>>

Lists all the drivers in the active project.

Example

Copy
Copied
const pagedResponse = await dl.drivers.query()
const drivers = pagedResponse.items

Returns

Promise<IPagedResponse<SDKDriver>>

  • A promise that resolves to a paged response with the listed drivers.

Implementation of

IBundle.query