diff --git a/lib/Embed.js b/lib/Embed.js new file mode 100644 index 000000000..a661b5eae --- /dev/null +++ b/lib/Embed.js @@ -0,0 +1,9 @@ +"use strict"; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var Embed = function Embed(data) { + _classCallCheck(this, Embed); +}; + +module.exports = Embed; \ No newline at end of file diff --git a/lib/Embeds/Embed.js b/lib/Embeds/Embed.js new file mode 100644 index 000000000..a661b5eae --- /dev/null +++ b/lib/Embeds/Embed.js @@ -0,0 +1,9 @@ +"use strict"; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var Embed = function Embed(data) { + _classCallCheck(this, Embed); +}; + +module.exports = Embed; \ No newline at end of file diff --git a/lib/Embeds/ImageEmbed.js b/lib/Embeds/ImageEmbed.js new file mode 100644 index 000000000..118caad9b --- /dev/null +++ b/lib/Embeds/ImageEmbed.js @@ -0,0 +1,21 @@ +"use strict"; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Embed = require("./Embed.js"); + +var ImageEmbed = (function (_Embed) { + _inherits(ImageEmbed, _Embed); + + function ImageEmbed(data) { + _classCallCheck(this, ImageEmbed); + + _Embed.call(this, data); + } + + return ImageEmbed; +})(Embed); + +module.exports = ImageEmbed; \ No newline at end of file diff --git a/lib/Embeds/LinkEmbed.js b/lib/Embeds/LinkEmbed.js new file mode 100644 index 000000000..566ac721b --- /dev/null +++ b/lib/Embeds/LinkEmbed.js @@ -0,0 +1,21 @@ +"use strict"; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Embed = require("./Embed.js"); + +var LinkEmbed = (function (_Embed) { + _inherits(LinkEmbed, _Embed); + + function LinkEmbed(data) { + _classCallCheck(this, LinkEmbed); + + _Embed.call(this, data); + } + + return LinkEmbed; +})(Embed); + +module.exports = LinkEmbed; \ No newline at end of file diff --git a/lib/Embeds/VideoEmbed.js b/lib/Embeds/VideoEmbed.js new file mode 100644 index 000000000..3c1be1715 --- /dev/null +++ b/lib/Embeds/VideoEmbed.js @@ -0,0 +1,21 @@ +"use strict"; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Embed = require("./Embed.js"); + +var VideoEmbed = (function (_Embed) { + _inherits(VideoEmbed, _Embed); + + function VideoEmbed(data) { + _classCallCheck(this, VideoEmbed); + + _Embed.call(this, data); + } + + return VideoEmbed; +})(Embed); + +module.exports = VideoEmbed; \ No newline at end of file diff --git a/src/Embeds/Embed.js b/src/Embeds/Embed.js new file mode 100644 index 000000000..4777e3ed5 --- /dev/null +++ b/src/Embeds/Embed.js @@ -0,0 +1,7 @@ +class Embed{ + constructor(data){ + + } +} + +module.exports = Embed; \ No newline at end of file diff --git a/src/Embeds/ImageEmbed.js b/src/Embeds/ImageEmbed.js new file mode 100644 index 000000000..de2fc0e4b --- /dev/null +++ b/src/Embeds/ImageEmbed.js @@ -0,0 +1,9 @@ +var Embed = require("./Embed.js"); + +class ImageEmbed extends Embed{ + constructor(data){ + super(data); + } +} + +module.exports = ImageEmbed; \ No newline at end of file diff --git a/src/Embeds/LinkEmbed.js b/src/Embeds/LinkEmbed.js new file mode 100644 index 000000000..16902db1a --- /dev/null +++ b/src/Embeds/LinkEmbed.js @@ -0,0 +1,9 @@ +var Embed = require("./Embed.js"); + +class LinkEmbed extends Embed{ + constructor(data){ + super(data); + } +} + +module.exports = LinkEmbed; \ No newline at end of file diff --git a/src/Embeds/VideoEmbed.js b/src/Embeds/VideoEmbed.js new file mode 100644 index 000000000..ffa968669 --- /dev/null +++ b/src/Embeds/VideoEmbed.js @@ -0,0 +1,9 @@ +var Embed = require("./Embed.js"); + +class VideoEmbed extends Embed{ + constructor(data){ + super(data); + } +} + +module.exports = VideoEmbed; \ No newline at end of file