Add RemoteLoginInfo class for the interface

This commit is contained in:
Cyberboss
2017-11-27 11:06:51 -05:00
parent db27487441
commit 283a3e7651
8 changed files with 84 additions and 57 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ namespace TGS.CommandLine
}
argsAsList.RemoveAt(I);
argsAsList.RemoveAt(I);
ReplaceInterface(new ServerInterface(address, port, username, password));
ReplaceInterface(new ServerInterface(new RemoteLoginInfo(address, port, username, password)));
break;
}
}
@@ -230,7 +230,7 @@ namespace TGS.CommandLine
var username = Console.ReadLine();
Console.Write("Enter password: ");
var password = ReadLineSecure();
ReplaceInterface(new ServerInterface(address, port, username, password));
ReplaceInterface(new ServerInterface(new RemoteLoginInfo(address, port, username, password)));
var res = currentInterface.ConnectionStatus(out string error);
if (!res.HasFlag(ConnectivityLevel.Connected))
{