UNPKG

tcx-builder

Version:
38 lines (37 loc) 1.69 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var _common_1 = require("../_common"); var History = /** @class */ (function (_super) { __extends(History, _super); function History(options) { var _this = _super.call(this) || this; _this.Running = options.running; _this.Biking = options.biking; _this.Other = options.other; _this.MultiSport = options.multisport; return _this; } History.prototype.toXml = function () { var xmlElement = ''; xmlElement += _common_1.BaseObject.buildXmlNode('Running', this.Running.toXml(), this.Running.attributes); xmlElement += _common_1.BaseObject.buildXmlNode('Biking', this.Biking.toXml(), this.Biking.attributes); xmlElement += _common_1.BaseObject.buildXmlNode('Other', this.Other.toXml(), this.Other.attributes); xmlElement += _common_1.BaseObject.buildXmlNode('MultiSport', this.MultiSport.toXml(), this.MultiSport.attributes); return xmlElement; }; return History; }(_common_1.BaseObject)); exports.History = History;