mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 17:19:59 +00:00
27 lines
810 B
TypeScript
27 lines
810 B
TypeScript
"use strict";
|
|
|
|
import * as cast from "../../cast";
|
|
|
|
|
|
export default class CastOptions {
|
|
public autoJoinPolicy: string = cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;
|
|
public language: string = null;
|
|
public receiverApplicationId: string = null;
|
|
public resumeSavedSession: boolean = true;
|
|
|
|
constructor (options: CastOptions = ({} as CastOptions)) {
|
|
if (options.autoJoinPolicy) {
|
|
this.autoJoinPolicy = options.autoJoinPolicy;
|
|
}
|
|
if (options.language) {
|
|
this.language = options.language;
|
|
}
|
|
if (options.receiverApplicationId) {
|
|
this.receiverApplicationId = options.receiverApplicationId;
|
|
}
|
|
if (options.resumeSavedSession) {
|
|
this.resumeSavedSession = options.resumeSavedSession;
|
|
}
|
|
}
|
|
}
|