Added function ChangeAccount

This commit is contained in:
DW
2017-08-12 01:31:36 +03:00
parent 10e267d031
commit 515a12ab15
7 changed files with 280 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