mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2026-01-06 03:52:39 +01:00
35 lines
766 B
JavaScript
35 lines
766 B
JavaScript
(function(app) {
|
|
"use strict";
|
|
|
|
function BitwiseOperation () {
|
|
}
|
|
|
|
BitwiseOperation.prototype.calculate = function () {
|
|
return eval(this.string);
|
|
};
|
|
|
|
function BitwiseNumbers(numbers) {
|
|
this.numbers = numbers;
|
|
}
|
|
|
|
function ErrorResult(message) {
|
|
this.message = message;
|
|
}
|
|
|
|
function ViewResult (template) {
|
|
this.template = template;
|
|
}
|
|
|
|
function DisplayResult (input, content) {
|
|
this.input = input;
|
|
this.content = content;
|
|
}
|
|
|
|
app.models.BitwiseOperation = BitwiseOperation;
|
|
app.models.BitwiseNumbers = BitwiseNumbers;
|
|
app.models.ErrorResult = ErrorResult;
|
|
app.models.ViewResult = ViewResult;
|
|
app.models.DisplayResult = DisplayResult;
|
|
|
|
})(window.app);
|