woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
90 lines • 2.47 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("util");
/**
* Represents an emoji.
*/
class Emoji {
/**
* Initializes a new instance of the `Emoji` class.
*/
constructor(options) {
/**
* The aliases of the emoji.
*/
this.aliases = [];
/**
* A value indicating at which position the emoji is displayed.
*/
this.showOrder = null;
/**
* The filename relative to the root of WoltLab Suite Core of the high-resolution emoji.
*/
this.highResFileName = null;
this.Name = options.Name;
this.DisplayName = options.DisplayName;
if (!util_1.isNullOrUndefined(options.Aliases)) {
this.Aliases.push(...options.Aliases);
}
if (!util_1.isNullOrUndefined(options.ShowOrder)) {
this.ShowOrder = options.ShowOrder;
}
this.FileName = options.FileName;
if (!util_1.isNullOrUndefined(options.HighResFileName)) {
this.HighResFileName = options.HighResFileName;
}
}
/**
* Gets or sets the name of the emoji.
*/
get Name() {
return this.name;
}
set Name(value) {
this.name = value;
}
/**
* Gets or sets the human-readable name of the emoji.
*/
get DisplayName() {
return this.displayName;
}
set DisplayName(value) {
this.displayName = value;
}
/**
* Gets the aliases of the emoji.
*/
get Aliases() {
return this.aliases;
}
/**
* Gets or sets a value indicating at which position the emoji is displayed.
*/
get ShowOrder() {
return this.showOrder;
}
set ShowOrder(value) {
this.showOrder = value;
}
/**
* Gets or sets the filename relative to the root of WoltLab Suite Core of the emoji.
*/
get FileName() {
return this.fileName;
}
set FileName(value) {
this.fileName = value;
}
/**
* Gets or sets the filename relative to the root of WoltLab Suite Core of the high-resolution emoji.
*/
get HighResFileName() {
return this.highResFileName;
}
set HighResFileName(value) {
this.highResFileName = value;
}
}
exports.Emoji = Emoji;
//# sourceMappingURL=Emoji.js.map