mirror of
https://github.com/CommonLoon102/NBloodServerSupervisor.git
synced 2024-12-23 03:02:51 +01:00
28 lines
637 B
C#
28 lines
637 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)
|
|||
|
{
|
|||
|
IsSuccess = true;
|
|||
|
Port = port;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|