mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
create LRT module frame
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import ResponseItem from './response-item.dto';
|
||||
|
||||
export default class ApiResponse {
|
||||
items: Array<ResponseItem> = [];
|
||||
content = 'videos';
|
||||
updateList = true;
|
||||
category: string;
|
||||
play: string;
|
||||
msgBoxOK: string;
|
||||
|
||||
setTitle(title) {
|
||||
this.category = title;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
setToPlayable(path) {
|
||||
this.updateList = false;
|
||||
this.play = path;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
createItem() {
|
||||
const item = new ResponseItem();
|
||||
this.items.push(item);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
addMessage(message) {
|
||||
this.msgBoxOK = message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user