2025-06-20 12:37:25 -04:00
|
|
|
/*
|
|
|
|
|
Copyright 2025 New Vector Ltd.
|
|
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
|
|
Please see LICENSE in the repository root for full details.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import { MediaDevices } from "./MediaDevices";
|
2025-10-16 13:57:08 -04:00
|
|
|
import { type ObservableScope } from "./ObservableScope";
|
2025-06-20 12:37:25 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The top-level state holder for the application.
|
|
|
|
|
*/
|
2025-10-16 13:57:08 -04:00
|
|
|
export class AppViewModel {
|
2025-06-20 12:37:25 -04:00
|
|
|
public readonly mediaDevices = new MediaDevices(this.scope);
|
|
|
|
|
|
|
|
|
|
// TODO: Move more application logic here. The CallViewModel, at the very
|
|
|
|
|
// least, ought to be accessible from this object.
|
2025-10-16 13:57:08 -04:00
|
|
|
|
|
|
|
|
public constructor(private readonly scope: ObservableScope) {}
|
2025-06-20 12:37:25 -04:00
|
|
|
}
|