UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

32 lines (31 loc) 848 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MMenu = void 0; /* INTERFACE END */ /* MODEL START */ var MMenu = /** @class */ (function () { function MMenu(init) { Object.assign(this, init); } MMenu.prototype.Validate = function () { var errorLogger = {}; if (!this.syme_id) { errorLogger.syme_id = "System menu ID is Required!"; } else { if (this.syme_id == 'module') { } } if (!this.sort) { errorLogger.sort = "sort order is Required!"; } else { if (this.sort != 'asc' && this.sort != 'desc') { errorLogger.sort = "sort order is Required!"; } } return errorLogger; }; return MMenu; }()); exports.MMenu = MMenu;