create LRT module frame

This commit is contained in:
Jurgis Sakalauskas
2022-12-06 19:36:10 +02:00
parent d20295326f
commit 8c9190675b
12 changed files with 243 additions and 4 deletions
+34
View File
@@ -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;
}
}