Server => Interface

This commit is contained in:
Cyberboss
2017-10-20 14:12:46 -04:00
parent 81adbb454a
commit 2fba289804
21 changed files with 456 additions and 456 deletions
+7 -7
View File
@@ -28,7 +28,7 @@ namespace TGCommandLine
protected override ExitCode Run(IList<string> parameters)
{
var res = Server.GetComponent<ITGAdministration>().MoveServer(parameters[0]);
var res = Interface.GetComponent<ITGAdministration>().MoveServer(parameters[0]);
OutputProc(res ?? "Success");
return res == null ? ExitCode.Normal : ExitCode.ServerError;
}
@@ -52,7 +52,7 @@ namespace TGCommandLine
protected override ExitCode Run(IList<string> parameters)
{
var res = Server.GetComponent<ITGAdministration>().RecreateStaticFolder();
var res = Interface.GetComponent<ITGAdministration>().RecreateStaticFolder();
OutputProc(res ?? "Success");
return res == null ? ExitCode.Normal : ExitCode.ServerError;
}
@@ -92,7 +92,7 @@ namespace TGCommandLine
OutputProc("Invalid port number!");
return ExitCode.BadCommand;
}
var res = Server.GetComponent<ITGAdministration>().SetRemoteAccessPort(port);
var res = Interface.GetComponent<ITGAdministration>().SetRemoteAccessPort(port);
OutputProc(res ?? "Success!");
return ExitCode.Normal;
}
@@ -110,7 +110,7 @@ namespace TGCommandLine
protected override ExitCode Run(IList<string> parameters)
{
var port = Server.GetComponent<ITGAdministration>().RemoteAccessPort();
var port = Interface.GetComponent<ITGAdministration>().RemoteAccessPort();
OutputProc(String.Format("{0}", port));
return ExitCode.Normal;
}
@@ -129,7 +129,7 @@ namespace TGCommandLine
protected override ExitCode Run(IList<string> parameters)
{
var group = Server.GetComponent<ITGAdministration>().GetCurrentAuthorizedGroup();
var group = Interface.GetComponent<ITGAdministration>().GetCurrentAuthorizedGroup();
OutputProc(group ?? "ERROR");
return group != null ? ExitCode.Normal : ExitCode.ServerError;
}
@@ -154,7 +154,7 @@ namespace TGCommandLine
}
protected override ExitCode Run(IList<string> parameters)
{
var result = Server.GetComponent<ITGAdministration>().SetAuthorizedGroup(parameters[0]);
var result = Interface.GetComponent<ITGAdministration>().SetAuthorizedGroup(parameters[0]);
if(result != null)
{
OutputProc("Group set to: " + result);
@@ -182,7 +182,7 @@ namespace TGCommandLine
protected override ExitCode Run(IList<string> parameters)
{
var res = Server.GetComponent<ITGAdministration>().SetAuthorizedGroup(null);
var res = Interface.GetComponent<ITGAdministration>().SetAuthorizedGroup(null);
if(res != "ADMIN")
{
OutputProc("Failed to clear the group??? We are currently set to: " + res);