mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-18 22:34:04 +02:00
Unify enums used for result messages
This commit is contained in:
parent
4c66193b6e
commit
e40459a039
Common/Phantom.Common.Data
Instance
Replies
Server/Phantom.Server.Services/Instances
@ -1,6 +1,6 @@
|
|||||||
namespace Phantom.Common.Data.Instance;
|
namespace Phantom.Common.Data.Instance;
|
||||||
|
|
||||||
public enum InstanceLaunchFailReason {
|
public enum InstanceLaunchFailReason : byte {
|
||||||
UnknownError,
|
UnknownError,
|
||||||
ServerPortNotAllowed,
|
ServerPortNotAllowed,
|
||||||
ServerPortAlreadyInUse,
|
ServerPortAlreadyInUse,
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
namespace Phantom.Common.Data.Replies;
|
namespace Phantom.Common.Data.Replies;
|
||||||
|
|
||||||
public enum LaunchInstanceResult : byte {
|
public enum LaunchInstanceResult : byte {
|
||||||
|
UnknownError,
|
||||||
LaunchInitiated,
|
LaunchInitiated,
|
||||||
InstanceAlreadyLaunching,
|
InstanceAlreadyLaunching,
|
||||||
InstanceAlreadyRunning,
|
InstanceAlreadyRunning,
|
||||||
InstanceIsStopping,
|
InstanceIsStopping
|
||||||
UnknownError
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class LaunchInstanceResultExtensions {
|
public static class LaunchInstanceResultExtensions {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace Phantom.Common.Data.Replies;
|
namespace Phantom.Common.Data.Replies;
|
||||||
|
|
||||||
public enum SendCommandToInstanceResult : byte {
|
public enum SendCommandToInstanceResult : byte {
|
||||||
Success,
|
UnknownError,
|
||||||
UnknownError
|
Success
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class SendCommandToInstanceResultExtensions {
|
public static class SendCommandToInstanceResultExtensions {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
namespace Phantom.Common.Data.Replies;
|
namespace Phantom.Common.Data.Replies;
|
||||||
|
|
||||||
public enum StopInstanceResult : byte {
|
public enum StopInstanceResult : byte {
|
||||||
|
UnknownError,
|
||||||
StopInitiated,
|
StopInitiated,
|
||||||
InstanceAlreadyStopping,
|
InstanceAlreadyStopping,
|
||||||
InstanceAlreadyStopped,
|
InstanceAlreadyStopped
|
||||||
UnknownError
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class StopInstanceResultExtensions {
|
public static class StopInstanceResultExtensions {
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
namespace Phantom.Server.Services.Instances;
|
namespace Phantom.Server.Services.Instances;
|
||||||
|
|
||||||
public enum AddInstanceResult {
|
public enum AddInstanceResult : byte {
|
||||||
|
UnknownError,
|
||||||
Success,
|
Success,
|
||||||
InstanceAlreadyExists,
|
InstanceAlreadyExists,
|
||||||
InstanceNameMustNotBeEmpty,
|
InstanceNameMustNotBeEmpty,
|
||||||
InstanceMemoryMustNotBeZero,
|
InstanceMemoryMustNotBeZero,
|
||||||
AgentNotFound,
|
AgentNotFound,
|
||||||
AgentInstanceLimitExceeded,
|
AgentInstanceLimitExceeded,
|
||||||
AgentMemoryLimitExceeded,
|
AgentMemoryLimitExceeded
|
||||||
UnknownError
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class AddInstanceResultExtensions {
|
public static class AddInstanceResultExtensions {
|
||||||
|
Loading…
Reference in New Issue
Block a user