Merge with branch auth

This commit is contained in:
DW
2017-08-15 16:42:51 +03:00
7 changed files with 281 additions and 2 deletions
+7 -1
View File
@@ -786,7 +786,7 @@ namespace MtApi
#endregion
#region Account Information
#region Account functions
public double AccountBalance()
{
@@ -869,6 +869,12 @@ namespace MtApi
return SendCommand<int>(MtCommandType.AccountStopoutMode, null);
}
public bool ChangeAccount(string login, string password, string host)
{
var commandParameters = new ArrayList { login, password, host};
return SendCommand<bool>(MtCommandType.ChangeAccount, commandParameters);
}
#endregion
#region Common Function
Executable → Regular
+3 -1
View File
@@ -275,6 +275,8 @@
WindowTimeOnDropped = 276,
WindowsTotal = 277,
WindowXOnDropped = 278,
WindowYOnDropped = 279
WindowYOnDropped = 279,
ChangeAccount = 280
}
}