Fixed Issue #4: Changed function iCustom to use request/respons pattern.

This commit is contained in:
DW
2016-05-12 13:46:06 +03:00
parent 4e95ceac32
commit b8e6b1a973
9 changed files with 332 additions and 101 deletions
+30
View File
@@ -0,0 +1,30 @@
using System;
using System.Collections;
namespace MtApi.Requests
{
public class ICustomRequest : RequestBase
{
public enum ParametersType
{
Int = 0,
Double = 1,
String = 2,
Boolean = 3
}
public string Symbol { get; set; }
public int Timeframe { get; set; }
public string Name { get; set; }
public int Mode { get; set; }
public int Shift { get; set; }
public ArrayList Params { get; set; }
public ParametersType ParamsType { get; set; }
public override RequestType RequestType
{
get { return RequestType.iCustom; }
}
}
}
+2 -1
View File
@@ -9,6 +9,7 @@
OrderClose = 4,
OrderCloseBy = 5,
OrderDelete = 6,
OrderModify = 7
OrderModify = 7,
iCustom = 8
}
}