NBloodServerSupervisor/WebInterface/Models/StartServerResponse.cs
2020-01-27 22:37:28 +00:00

29 lines
696 B
C#

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 ?? "";
}
public StartServerResponse(int port, string commandLine)
{
IsSuccess = true;
Port = port;
CommandLine = commandLine;
}
}
}