@pubby.club/sdk
Version:
Pubby Development Kit
33 lines (32 loc) • 1.24 kB
JavaScript
;
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 __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var const_1 = require("../../../const");
var Rest_1 = require("../../../lib/Rest");
var RoomService = /** @class */ (function (_super) {
__extends(RoomService, _super);
function RoomService(api) {
return _super.call(this, api, "rooms") || this;
}
RoomService.prototype.getCurrent = function () {
return this.request({
method: "GET",
baseURL: const_1.BASE_URL + "/me/rooms",
url: "current",
});
};
return RoomService;
}(Rest_1.Rest));
exports.default = RoomService;