public static void WriteDataHistoryRequest(this MemoryBuffer buffer, LrpServer.Net.LrpDataHistoryRequest arg) { buffer.WriteAString(arg.Symbol); buffer.WriteTime(arg.Time); buffer.WriteInt32(arg.BarsNumber); buffer.WriteInt32(arg.PriceType); buffer.WriteAString(arg.GraphPeriod); buffer.WriteInt32(arg.ReportType); buffer.WriteInt32(arg.GraphType); }
public static LrpServer.Net.LrpDataHistoryRequest ReadDataHistoryRequest(this MemoryBuffer buffer) { var result = new LrpServer.Net.LrpDataHistoryRequest(); result.Symbol = buffer.ReadAString(); result.Time = buffer.ReadTime(); result.BarsNumber = buffer.ReadInt32(); result.PriceType = buffer.ReadInt32(); result.GraphPeriod = buffer.ReadAString(); result.ReportType = buffer.ReadInt32(); result.GraphType = buffer.ReadInt32(); return result; }
public static LrpServer.Net.LrpDataHistoryRequest ReadDataHistoryRequest(this MemoryBuffer buffer) { var result = new LrpServer.Net.LrpDataHistoryRequest(); result.Symbol = buffer.ReadAString(); result.Time = buffer.ReadTime(); result.BarsNumber = buffer.ReadInt32(); result.PriceType = buffer.ReadInt32(); result.GraphPeriod = buffer.ReadAString(); result.ReportType = buffer.ReadInt32(); result.GraphType = buffer.ReadInt32(); return(result); }