cloud-ide-lms-model
Version:
Package for Model management of Cloud IDEsys LMS
22 lines (21 loc) • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MPinCodeSelect = void 0;
/* INTERFACE END */
/* MODEL START */
class MPinCodeSelect {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (this.sypin_pincode === undefined) {
errorLogger.sypin_pincode = "Pin Code is Required!";
}
else if (this.sypin_id === undefined && this.sypin_pincode === undefined) {
errorLogger.sypin_id = "Pin Code ID is Required!";
}
return errorLogger;
}
}
exports.MPinCodeSelect = MPinCodeSelect;