typings/lib2/messagev2/action/callAction.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CallAction = void 0;
const internal_1 = require("../internal");
/**
 * Represents a call action.
 * @extends Action
 */
class CallAction extends internal_1.Action {
    /**
     * Creates an instance of CallAction.
     * @param label - The label of the call action.
     * @param phoneNumber - The phone number associated with the call action.
     */
    constructor(label, phoneNumber) {
        super(label);
        this.type = 'call';
        this.phoneNumber = phoneNumber;
    }
    /**
     * Gets the phone number associated with the call action.
     * @returns The phone number associated with the call action.
     */
    getPhoneNumber() {
        return this.phoneNumber;
    }
    /**
     * Sets the phone number associated with the call action.
     * @param phoneNumber - The phone number to set.
     * @returns The current instance of the CallAction class.
     */
    setPhoneNumber(phoneNumber) {
        this.phoneNumber = phoneNumber;
        return this;
    }
}
exports.CallAction = CallAction;