コード例 #1
0
ファイル: TypesSerializer.cs プロジェクト: hombrevrc/FDK
 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);
 }
コード例 #2
0
ファイル: TypesSerializer.cs プロジェクト: ifzz/FDK
		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;
		}
コード例 #3
0
ファイル: TypesSerializer.cs プロジェクト: hombrevrc/FDK
        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);
        }