PlayingFrom
Source: lyda-shared/src/Models/PlayingFrom.ts
Dependencies
import {Album} from "./db/lyda/Album.ts";
import {Playlist} from "./db/lyda/Playlist.ts";
PlayingFrom
Represents the source from where media is currently being played.
Type: interface
export interface PlayingFrom {
type: "album" | "playlist" | string;
name: string;
id: number;
entity?: Album|Playlist;
}
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| type | "album" or "playlist" or string | Yes | - |
| name | string | Yes | - |
| id | number | Yes | - |
| entity | Album or Playlist | No | - |