UNPKG

youtubei

Version:

Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!

37 lines (36 loc) 1.21 kB
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 (Object.prototype.hasOwnProperty.call(b, 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 __()); }; })(); import { Base } from "../Base"; import { ReplyParser } from "./ReplyParser"; /** Represents a Reply */ var Reply = /** @class */ (function (_super) { __extends(Reply, _super); /** @hidden */ function Reply(attr) { var _this = _super.call(this, attr.client) || this; Object.assign(_this, attr); return _this; } /** * Load this instance with raw data from Youtube * * @hidden */ Reply.prototype.load = function (data) { ReplyParser.loadReply(this, data); return this; }; return Reply; }(Base)); export { Reply };