"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeleteData = void 0;
const UserInterface_1 = require("./UserInterface");
class DeleteData extends UserInterface_1.UserInterface {
    prepare(result) {
        if (result == null || result.length < 1)
            this._status = false;
        else {
            this._status = true;
            this._data = result;
        }
    }
    execute() {
        if (this._status)
            this.response.status(200).send({ message: "Data Deleted successfully" });
        else
            this.response.status(404).send({ message: "Trying to update the wrong data." });
    }
}
exports.DeleteData = DeleteData;
