Methods
getContributions
- getContributions(type, agentId?): Promise<Contribution[]>
-
Parameters
-
type: string
-
Optional
agentId: string
getTypesFromContributions
- getTypesFromContributions(agentId?): Promise<Set<ContributionType>>
-
Returns Promise<Set<ContributionType>>
makeContribution
- makeContribution(contribution, agentId?): Promise<Contribution>
-
removeAllFromContributions
- removeAllFromContributions(agent?): Promise<Set<ContributionType>>
-
Returns Promise<Set<ContributionType>>
subscribeToContributions
- subscribeToContributions(type, handler?, agentId?): void
-
Parameters
-
type: string
-
Optional
handler: ((data) => void)
-
- (data): void
-
Returns void
-
Optional
agentId: string
Returns void
unsubscribeFromContributions
- unsubscribeFromContributions(type, agent?): void
-
Parameters
-
type: string
-
Optional
agent: IAgent
Returns void