mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-27 18:47:55 +00:00
Refactored MtApi.mq4
This commit is contained in:
@@ -858,10 +858,10 @@ namespace MtApi
|
||||
return SendCommand<int>(MtCommandType.MessageBox, commandParameters);
|
||||
}
|
||||
|
||||
public void PlaySound(string filename)
|
||||
public bool PlaySound(string filename)
|
||||
{
|
||||
var commandParameters = new ArrayList { filename };
|
||||
SendCommand<object>(MtCommandType.PlaySound, commandParameters);
|
||||
return SendCommand<bool>(MtCommandType.PlaySound, commandParameters);
|
||||
}
|
||||
|
||||
public void Print(string msg)
|
||||
@@ -882,10 +882,10 @@ namespace MtApi
|
||||
return SendCommand<bool>(MtCommandType.SendFTPA, commandParameters);
|
||||
}
|
||||
|
||||
public void SendMail(string subject, string someText)
|
||||
public bool SendMail(string subject, string someText)
|
||||
{
|
||||
var commandParameters = new ArrayList { subject, someText };
|
||||
SendCommand<object>(MtCommandType.SendMail, commandParameters);
|
||||
return SendCommand<bool>(MtCommandType.SendMail, commandParameters);
|
||||
}
|
||||
|
||||
public void Sleep(int milliseconds)
|
||||
|
||||
@@ -135,8 +135,8 @@
|
||||
iBullsPower = 106,
|
||||
iCCI = 107,
|
||||
iCCIOnArray = 108,
|
||||
iCustom = 109,
|
||||
iCustom_d = 10109,
|
||||
//iCustom = 109,
|
||||
//iCustom_d = 10109,
|
||||
iDeMarker = 110,
|
||||
iEnvelopes = 111,
|
||||
iEnvelopesOnArray = 112,
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user