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