UNPKG

ali-flmngr-server-fixed

Version:

> Node.js Backend for Flmngr file manager

31 lines 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Actions = void 0; const ActionError_1 = require("./action/ActionError"); const ActionUploadInit_1 = require("./action/ActionUploadInit"); const ActionUploadRemoveFile_1 = require("./action/ActionUploadRemoveFile"); const ActionUploadAddFile_1 = require("./action/ActionUploadAddFile"); const ActionUploadCommit_1 = require("./action/ActionUploadCommit"); const ActionUploadCancel_1 = require("./action/ActionUploadCancel"); class Actions { constructor() { this.m_actions = []; this.m_actions.push(new ActionError_1.ActionError()); this.m_actions.push(new ActionUploadInit_1.ActionUploadInit()); this.m_actions.push(new ActionUploadAddFile_1.ActionUploadAddFile()); this.m_actions.push(new ActionUploadRemoveFile_1.ActionUploadRemoveFile()); this.m_actions.push(new ActionUploadCommit_1.ActionUploadCommit()); this.m_actions.push(new ActionUploadCancel_1.ActionUploadCancel()); } getActionError() { return this.getAction("error"); } getAction(name) { for (let i = 0; i < this.m_actions.length; i++) if (this.m_actions[i].getName() === name) return this.m_actions[i]; return null; } } exports.Actions = Actions; //# sourceMappingURL=Actions.js.map