--- /dev/null
+export abstract class AbstractUserAction {
+ protected button: HTMLElement;
+ protected userData: HTMLElement;
+ protected userId: number;
+
+ public constructor(button: HTMLElement, userId: number, userDataElement: HTMLElement) {
+ this.button = button;
+ this.userId = userId;
+ this.userData = userDataElement;
+
+ this.init();
+ }
+
+ protected abstract init();
+}
+
+export default AbstractUserAction;
--- /dev/null
+define(["require", "exports"], function (require, exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AbstractUserAction = void 0;
+ class AbstractUserAction {
+ constructor(button, userId, userDataElement) {
+ this.button = button;
+ this.userId = userId;
+ this.userData = userDataElement;
+ this.init();
+ }
+ }
+ exports.AbstractUserAction = AbstractUserAction;
+ exports.default = AbstractUserAction;
+});