Ejemplo n.º 1
0
 public QuickFix.Message create(String beginString, String msgType)
 {
     if (beginString.Equals("FIX.4.0"))
     {
         return(fix40Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIX.4.1"))
     {
         return(fix41Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIX.4.2"))
     {
         return(fix42Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIX.4.3"))
     {
         return(fix43Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIX.4.4"))
     {
         return(fix44Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIX.5.0"))
     {
         return(fix50Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIX.5.0SP1"))
     {
         return(fix50sp1Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIX.5.0SP2"))
     {
         return(fix50sp2Factory.create(beginString, msgType));
     }
     if (beginString.Equals("FIXT.1.1"))
     {
         if (Message.isAdminMsgType(msgType))
         {
             return(fixt11Factory.create(beginString, msgType));
         }
         else
         {
             return(fix50Factory.create(beginString, msgType));
         }
     }
     return(new Message());
 }