UNPKG

shrimpy-node-temp

Version:
29 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var decimal_dto_converter_1 = require("./decimal-dto-converter"); var TradeChangeDtoConverter = /** @class */ (function () { function TradeChangeDtoConverter() { this._decimalDtoConverter = new decimal_dto_converter_1.DecimalDtoConverter(); } TradeChangeDtoConverter.prototype.convertFromDto = function (dto) { var result = { btcValue: dto.btcValue, nativeValue: this._decimalDtoConverter.convertFromDto(dto.nativeValue), symbol: dto.symbol, usdValue: dto.usdValue, }; return result; }; TradeChangeDtoConverter.prototype.convertToDto = function (model) { var result = { btcValue: model.btcValue, nativeValue: this._decimalDtoConverter.convertToDto(model.nativeValue), symbol: model.symbol, usdValue: model.usdValue, }; return result; }; return TradeChangeDtoConverter; }()); exports.TradeChangeDtoConverter = TradeChangeDtoConverter; //# sourceMappingURL=trade-change-dto-converter.js.map