1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Feed = void 0;
|
4 | var atom1_1 = require("./atom1");
|
5 | var json_1 = require("./json");
|
6 | var rss2_1 = require("./rss2");
|
7 | var Feed = (function () {
|
8 | function Feed(options) {
|
9 | var _this = this;
|
10 | this.items = [];
|
11 | this.categories = [];
|
12 | this.contributors = [];
|
13 | this.extensions = [];
|
14 | this.addItem = function (item) { return _this.items.push(item); };
|
15 | this.addCategory = function (category) { return _this.categories.push(category); };
|
16 | this.addContributor = function (contributor) { return _this.contributors.push(contributor); };
|
17 | this.addExtension = function (extension) { return _this.extensions.push(extension); };
|
18 | this.atom1 = function () { return atom1_1.default(_this); };
|
19 | this.rss2 = function () { return rss2_1.default(_this); };
|
20 | this.json1 = function () { return json_1.default(_this); };
|
21 | this.options = options;
|
22 | }
|
23 | return Feed;
|
24 | }());
|
25 | exports.Feed = Feed;
|
26 |
|
\ | No newline at end of file |