"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubmitFormAction = void 0;
const internal_1 = require("../internal");
/**
* Represents a submit form action.
* @extends Action
*/
class SubmitFormAction extends internal_1.Action {
/**
* Creates a new instance of the SubmitFormAction class.
* @param label - The label of the submit form action.
* @param postback - The postback object associated with the action.
*/
constructor(label, postback) {
super(label);
this.type = 'submitForm';
this.postback = postback;
}
/**
* Get the postback object associated with the submit form action.
* @returns The postback object.
*/
getPostback() {
return this.postback;
}
/**
* Set the postback object for the submit form action.
* @param postback - The postback object to set.
* @returns The current instance of the SubmitFormAction class.
*/
setPostback(postback) {
this.postback = postback;
return this;
}
}
exports.SubmitFormAction = SubmitFormAction;