mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
34 lines
748 B
JavaScript
34 lines
748 B
JavaScript
(function(app) {
|
|
|
|
function BitwiseOperation () {
|
|
}
|
|
|
|
BitwiseOperation.prototype.calculate = function () {
|
|
return eval(this.string);
|
|
};
|
|
|
|
function BitwiseNumbers(numbers) {
|
|
this.numbers = numbers;
|
|
}
|
|
|
|
function ErrorResult(message) {
|
|
this.message = message;
|
|
}
|
|
|
|
function HelpResult (commands) {
|
|
this.commands = commands;
|
|
}
|
|
|
|
function DisplayResult (input, content) {
|
|
this.input = input;
|
|
this.content = content;
|
|
}
|
|
|
|
app.models.BitwiseOperation = BitwiseOperation;
|
|
app.models.BitwiseNumbers = BitwiseNumbers;
|
|
app.models.ErrorResult = ErrorResult;
|
|
app.models.HelpResult = HelpResult;
|
|
app.models.DisplayResult = DisplayResult;
|
|
|
|
})(window.app);
|