UNPKG

cloud-ide-lms-model

Version:

Package for Model management of Cloud IDEsys LMS

35 lines (34 loc) 1.15 kB
"use strict"; /* INTERFASE START */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ICoreSypn = void 0; /* INTERFACE END */ /** * @description core_system_page_notes_manager (Reference: sypn) */ class ICoreSypn { constructor(init) { Object.assign(this, init); } Validate() { let errorLogger = {}; // Log errors here if (!this.sypn_title) { errorLogger.sypn_title = "Title is Required!"; } if (this.sypn_is_page_specific && !this.sypn_page_id_sypg) { errorLogger.sypn_page_id_sypg = "Page Id is Required!"; } if (this.sypn_is_entity_specific && !this.sypn_entity_id_sype) { errorLogger.sypn_entity_id_sype = "Entity Id is Required!"; } if (this.sypn_is_user_specific && !this.sypn_user_id_user) { errorLogger.sypn_entity_id_sype = "User Id is Required!"; } if (this.sypn_is_theme_specific && !this.sypn_page_them_id_sytm) { errorLogger.sypn_entity_id_sype = "Theme Id is Required!"; } return errorLogger; } } exports.ICoreSypn = ICoreSypn;