JS API Reference

Class: DemandRepository

shared/yagna/repository/demand-repository.DemandRepository

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new DemandRepository(api, cache): DemandRepository

Parameters

NameType
apiRequestorService
cacheCacheService<Demand>

Returns

DemandRepository

Defined in

src/shared/yagna/repository/demand-repository.ts:6

Methods

getById

getById(id): undefined | Demand

Parameters

NameType
idstring

Returns

undefined | Demand

Implementation of

IDemandRepository.getById

Defined in

src/shared/yagna/repository/demand-repository.ts:11


add

add(demand): Demand

Parameters

NameType
demandDemand

Returns

Demand

Implementation of

IDemandRepository.add

Defined in

src/shared/yagna/repository/demand-repository.ts:15


getAll

getAll(): Demand[]

Returns

Demand[]

Implementation of

IDemandRepository.getAll

Defined in

src/shared/yagna/repository/demand-repository.ts:20

Was this helpful?