2020-01-23 21:03:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace WebInterface
|
|
|
|
|
{
|
|
|
|
|
public class StartServerResponse
|
|
|
|
|
{
|
|
|
|
|
public bool IsSuccess { get; set; }
|
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
public string CommandLine { get; set; }
|
|
|
|
|
public string ErrorMessage { get; set; }
|
|
|
|
|
|
|
|
|
|
public StartServerResponse(string errorMessage = "")
|
|
|
|
|
{
|
|
|
|
|
IsSuccess = false;
|
|
|
|
|
ErrorMessage = errorMessage ?? "";
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-27 23:37:28 +01:00
|
|
|
|
public StartServerResponse(int port, string commandLine)
|
2020-01-23 21:03:54 +01:00
|
|
|
|
{
|
|
|
|
|
IsSuccess = true;
|
|
|
|
|
Port = port;
|
2020-01-27 23:37:28 +01:00
|
|
|
|
CommandLine = commandLine;
|
2020-01-23 21:03:54 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|