cc-nodejs-sdk
Version:
Node JS SDK for CommandCenter
39 lines (34 loc) • 765 B
JavaScript
/**
* This class represents the HTTP header.
*/
class Header {
_name;
_className;
/**
* Creates a Header class instance with the specified header name.
* @param {string} name - A String containing the header name.
* @param {string} className - A String containing the class name.
*/
constructor(name, className = null) {
this._name = name;
this._className = className;
}
/**
* This is a getter method to get the header name.
* @returns A String representing the header name.
*/
getName() {
return this._name;
}
/**
* This is a getter method to get the class name.
* @returns A String representing the class name.
*/
getClassName() {
return this._className;
}
}
module.exports = {
MasterModel: Header,
Header: Header
}