UNPKG

cloud-ide-lms-model

Version:

Package for Model management of Cloud IDEsys LMS

69 lines (68 loc) 2.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotificationResponse = exports.NotificationMarkReadPayload = exports.NotificationCreatePayload = exports.NotificationGetByIdPayload = exports.NotificationListPayload = void 0; const common_1 = require("../../common-types/common"); /* INTERFACE END */ /* MODEL START */ class NotificationListPayload extends common_1.MTableQueries { constructor(init) { super(init); Object.assign(this, init); } Validate() { let errorLogger = {}; return errorLogger; } } exports.NotificationListPayload = NotificationListPayload; class NotificationGetByIdPayload { constructor(init) { Object.assign(this, init); } Validate() { let errorLogger = {}; if (!this.not_id) { errorLogger.not_id = "Notification ID is Required!"; } return errorLogger; } } exports.NotificationGetByIdPayload = NotificationGetByIdPayload; class NotificationCreatePayload { constructor(init) { Object.assign(this, init); } Validate() { let errorLogger = {}; if (!this.not_id_user) { errorLogger.not_id_user = "User ID is Required!"; } if (!this.not_title) { errorLogger.not_title = "Title is Required!"; } if (!this.not_message) { errorLogger.not_message = "Message is Required!"; } if (!this.not_category) { errorLogger.not_category = "Category is Required!"; } return errorLogger; } } exports.NotificationCreatePayload = NotificationCreatePayload; class NotificationMarkReadPayload { constructor(init) { Object.assign(this, init); } Validate() { let errorLogger = {}; if (!this.not_id) { errorLogger.not_id = "Notification ID is Required!"; } return errorLogger; } } exports.NotificationMarkReadPayload = NotificationMarkReadPayload; class NotificationResponse { } exports.NotificationResponse = NotificationResponse;