From b63599365680e79356041af62bb8868e72f4bef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 30 May 2018 14:10:32 +0200 Subject: [PATCH] Make JSON-like command classes interfaces --- src/app/console/console-command.ts | 2 +- src/app/dashboard/layout-command.ts | 2 +- src/app/services/processcommand.ts | 2 +- src/app/services/processlog-command.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/console/console-command.ts b/src/app/console/console-command.ts index 3d3813d..c23e6a8 100644 --- a/src/app/console/console-command.ts +++ b/src/app/console/console-command.ts @@ -1,7 +1,7 @@ // Copyright (C) 2018 Avatao.com Innovative Learning Kft. // All Rights Reserved. See LICENSE file for details. -export class ConsoleCommand { +export interface ConsoleCommand { command: string; content?: string; showLiveLogs?: boolean; diff --git a/src/app/dashboard/layout-command.ts b/src/app/dashboard/layout-command.ts index 9475f5c..18274fd 100644 --- a/src/app/dashboard/layout-command.ts +++ b/src/app/dashboard/layout-command.ts @@ -1,7 +1,7 @@ // Copyright (C) 2018 Avatao.com Innovative Learning Kft. // All Rights Reserved. See LICENSE file for details. -export class LayoutCommand { +export interface LayoutCommand { command: string; layout?: string; hide_messages?: boolean; diff --git a/src/app/services/processcommand.ts b/src/app/services/processcommand.ts index b1fd6a7..8952530 100644 --- a/src/app/services/processcommand.ts +++ b/src/app/services/processcommand.ts @@ -1,7 +1,7 @@ // Copyright (C) 2018 Avatao.com Innovative Learning Kft. // All Rights Reserved. See LICENSE file for details. -export class ProcessCommand { +export interface ProcessCommand { command: string; process_name: string; error?: string; diff --git a/src/app/services/processlog-command.ts b/src/app/services/processlog-command.ts index 7889c6f..1ed732e 100644 --- a/src/app/services/processlog-command.ts +++ b/src/app/services/processlog-command.ts @@ -1,7 +1,7 @@ // Copyright (C) 2018 Avatao.com Innovative Learning Kft. // All Rights Reserved. See LICENSE file for details. -export class ProcessLogCommand { +export interface ProcessLogCommand { command: string; stdout: string; stderr: string;