import { Injectable } from "@angular/core"; import { AuthedApi } from "../authed-api"; import { FE_BigBlueButtonJoin, FE_BigBlueButtonCreateAndJoinMeeting } from "../../models/integration" import { HttpClient } from "@angular/common/http"; import { ApiError } from "../../../../../src/api/ApiError"; @Injectable() export class BigBlueButtonApiService extends AuthedApi { constructor(http: HttpClient) { super(http); } public joinMeeting(url: string, name: string): Promise { return this.authedGet("/api/v1/dimension/bigbluebutton/join", {greenlightUrl: url, fullName: name}).toPromise(); } public createAndJoinMeeting(roomId: string): Promise { return this.authedGet("/api/v1/dimension/bigbluebutton/join_meeting", {roomId: roomId}).toPromise(); } }