mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-08-03 11:31:20 +02:00
Add shuffle and repeat to current state api
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { MediaStatus } from "./mediaStatus";
|
||||
import {MediaPlayerInfo} from "./mediaPlayerInfo";
|
||||
|
||||
export interface MediaInfo {
|
||||
title: string;
|
||||
@@ -13,4 +14,5 @@ export interface MediaInfo {
|
||||
durationInSeconds?: number;
|
||||
image: string;
|
||||
favorite: boolean;
|
||||
player: MediaPlayerInfo;
|
||||
}
|
||||
|
8
src/models/mediaPlayerInfo.ts
Normal file
8
src/models/mediaPlayerInfo.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {RepeatState} from "./repeatState";
|
||||
import {MediaStatus} from "./mediaStatus";
|
||||
|
||||
export interface MediaPlayerInfo {
|
||||
status: MediaStatus;
|
||||
shuffle: boolean;
|
||||
repeat: RepeatState;
|
||||
}
|
5
src/models/repeatState.ts
Normal file
5
src/models/repeatState.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export enum RepeatState {
|
||||
off = "off",
|
||||
all = "all",
|
||||
single = "single",
|
||||
}
|
Reference in New Issue
Block a user