Exemplo n.º 1
0
 public static void WriteLrpSessionInfo(this MemoryBuffer buffer, LrpServer.Net.LrpSessionInfo arg)
 {
     buffer.WriteAString(arg.TradingSessionId);
     buffer.WriteSessionStatus(arg.Status);
     buffer.WriteInt32(arg.ServerTimeZoneOffset);
     buffer.WriteAString(arg.PlatformName);
     buffer.WriteAString(arg.PlatformCompany);
     buffer.WriteTime(arg.StartTime);
     buffer.WriteTime(arg.OpenTime);
     buffer.WriteTime(arg.CloseTime);
     buffer.WriteTime(arg.EndTime);
     buffer.WriteStatusGroupInfoArray(arg.StatusGroups);
 }
Exemplo n.º 2
0
        public static LrpServer.Net.LrpSessionInfo ReadLrpSessionInfo(this MemoryBuffer buffer)
        {
            var result = new LrpServer.Net.LrpSessionInfo();

            result.TradingSessionId     = buffer.ReadAString();
            result.Status               = buffer.ReadSessionStatus();
            result.ServerTimeZoneOffset = buffer.ReadInt32();
            result.PlatformName         = buffer.ReadAString();
            result.PlatformCompany      = buffer.ReadAString();
            result.StartTime            = buffer.ReadTime();
            result.OpenTime             = buffer.ReadTime();
            result.CloseTime            = buffer.ReadTime();
            result.EndTime              = buffer.ReadTime();
            result.StatusGroups         = buffer.ReadStatusGroupInfoArray();
            return(result);
        }
Exemplo n.º 3
0
		public static LrpServer.Net.LrpSessionInfo ReadLrpSessionInfo(this MemoryBuffer buffer)
		{
			var result = new LrpServer.Net.LrpSessionInfo();
			result.TradingSessionId = buffer.ReadAString();
			result.Status = buffer.ReadSessionStatus();
			result.ServerTimeZoneOffset = buffer.ReadInt32();
			result.PlatformName = buffer.ReadAString();
			result.PlatformCompany = buffer.ReadAString();
			result.StartTime = buffer.ReadTime();
			result.OpenTime = buffer.ReadTime();
			result.CloseTime = buffer.ReadTime();
			result.EndTime = buffer.ReadTime();
			return result;
		}
Exemplo n.º 4
0
 public void SendSessionInfo(long id, string requestId, LrpServer.Net.LrpSessionInfo sessionInfo)
 {
     this.Instance.SendSessionInfo(this.Handle, id, requestId, sessionInfo);
 }
Exemplo n.º 5
0
        public void SendSessionInfo(SoftFX.Lrp.LPtr handle, long id, string requestId, LrpServer.Net.LrpSessionInfo sessionInfo)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteAString(requestId);
                buffer.WriteLrpSessionInfo(sessionInfo);

                int _status = m_client.Invoke(1, 7, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }