コード例 #1
0
 public TapAPIOrderInfoNotice(TapAPIOrderInfoNotice other) : this(TapTradePINVOKE.new_TapAPIOrderInfoNotice__SWIG_1(TapAPIOrderInfoNotice.getCPtr(other)), true)
 {
     if (TapTradePINVOKE.SWIGPendingException.Pending)
     {
         throw TapTradePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
        public override void OnRspQryOrder(uint sessionID, int errorCode, char isLast, TapAPIOrderInfo info)
        {
            if (null != info)
            {
                TapTradeAPI.TapAPIOrderInfoNotice notice = new TapTradeAPI.TapAPIOrderInfoNotice();
                notice.SessionID = sessionID;
                notice.ErrorCode = (uint)errorCode;
                notice.OrderInfo = info;
                DataManager.Trade.OrderInfoMgr.UpdateOrAdd(notice);
            }

            if (TapTrade.APIYNFLAG_YES == isLast && null != OnQryFinishEvent)
            {
                OnQryFinishEvent(TradeQryType.Order);
            }
        }
コード例 #3
0
 public virtual void OnRtnOrder(TapAPIOrderInfoNotice info)
 {
     TapTradePINVOKE.ITapTradeAPINotify_OnRtnOrder(swigCPtr, TapAPIOrderInfoNotice.getCPtr(info));
 }
コード例 #4
0
 internal static HandleRef getCPtr(TapAPIOrderInfoNotice obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }