mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-09 00:47:51 +00:00
version 1.0.24. Added functions TerminalInfoString and SymbolInfoString
This commit is contained in:
Binary file not shown.
@@ -3469,6 +3469,35 @@ int executeCommand()
|
||||
}
|
||||
break;
|
||||
|
||||
case 153: //TerminalInfoString
|
||||
if (getIntValue(ExpertHandle, 0, typeValue))
|
||||
{
|
||||
PrintParamError("property_id");
|
||||
}
|
||||
|
||||
if (!sendStringResponse(ExpertHandle, TerminalInfoString(typeValue)))
|
||||
{
|
||||
PrintResponseError("TerminalInfoString");
|
||||
}
|
||||
break;
|
||||
|
||||
case 154: //SymbolInfoString
|
||||
if (!getStringValue(ExpertHandle, 0, symbolValue))
|
||||
{
|
||||
PrintParamError("symbol");
|
||||
}
|
||||
|
||||
if (getIntValue(ExpertHandle, 1, typeValue))
|
||||
{
|
||||
PrintParamError("prop_id");
|
||||
}
|
||||
|
||||
if (!sendStringResponse(ExpertHandle, SymbolInfoString(symbolValue, typeValue)))
|
||||
{
|
||||
PrintResponseError("SymbolInfoString");
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
Print("Unknown command type = ", commandType);
|
||||
sendVoidResponse(ExpertHandle);
|
||||
|
||||
Reference in New Issue
Block a user