UNPKG

@adaas/a-concept

Version:

A-Concept is a framework to build new Applications within or outside the ADAAS ecosystem. This framework is designed to be modular structure regardless environment and program goal.

41 lines (27 loc) 987 B
import { A_Connect } from "@adaas/a-concept/decorators/A-Connect/A-Connect.decorator"; import { A_Channel } from "@adaas/a-concept/global/A-Channel/A-Channel.class"; import { A_TYPES__A_ChannelCallParams } from "@adaas/a-concept/global/A-Channel/A-Channel.types"; import { A_Container } from "@adaas/a-concept/global/A-Container/A-Container.class"; import { A_Feature } from "@adaas/a-concept/global/A-Feature/A-Feature.class"; import { ScheduleContainer } from "./Schedule.container"; export class CommandContainer extends A_Container<[ 'execute', ]> { constructor() { super({}); } @A_Feature.Define({ name: 'execute', // channels: [] }) async execute( arg: Partial<A_TYPES__A_ChannelCallParams> ) { console.log('CommandContainer -> command()'); } async doSomething( @A_Connect(A_Channel, '') schedule: A_Channel<[ScheduleContainer]> ) { schedule.call('schedule', {}); } }