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
Name | Type |
---|---|
api | RequestorService |
cache | CacheService <Demand > |
Returns
Defined in
src/shared/yagna/repository/demand-repository.ts:6
Methods
getById
▸ getById(id
): undefined
| Demand
Parameters
Name | Type |
---|---|
id | string |
Returns
undefined
| Demand
Implementation of
Defined in
src/shared/yagna/repository/demand-repository.ts:11
add
▸ add(demand
): Demand
Parameters
Name | Type |
---|---|
demand | Demand |
Returns
Implementation of
Defined in
src/shared/yagna/repository/demand-repository.ts:15
getAll
▸ getAll(): Demand
[]
Returns
Demand
[]