Ejemplo n.º 1
0
 public TapAPIChangePasswordReq(TapAPIChangePasswordReq other) : this(TapQuotePINVOKE.new_TapAPIChangePasswordReq__SWIG_1(TapAPIChangePasswordReq.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public TapAPIQuotLoginRspInfo(TapAPIQuotLoginRspInfo other) : this(TapQuotePINVOKE.new_TapAPIQuotLoginRspInfo__SWIG_1(TapAPIQuotLoginRspInfo.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
 public TapAPIContract(TapAPIContract other) : this(TapQuotePINVOKE.new_TapAPIContract__SWIG_1(TapAPIContract.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public TapAPICommodity(TapAPICommodity other) : this(TapQuotePINVOKE.new_TapAPICommodity__SWIG_1(TapAPICommodity.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
 public TapAPIQuoteLoginAuth(TapAPIQuoteLoginAuth other) : this(TapQuotePINVOKE.new_TapAPIQuoteLoginAuth__SWIG_1(TapAPIQuoteLoginAuth.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public TapAPITradingTimeBucket(TapAPITradingTimeBucket other) : this(TapQuotePINVOKE.new_TapAPITradingTimeBucket__SWIG_1(TapAPITradingTimeBucket.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("OnRspLogin", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateITapQuoteAPINotify_0(SwigDirectorOnRspLogin);
     }
     if (SwigDerivedClassHasMethod("OnAPIReady", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateITapQuoteAPINotify_1(SwigDirectorOnAPIReady);
     }
     if (SwigDerivedClassHasMethod("OnDisconnect", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateITapQuoteAPINotify_2(SwigDirectorOnDisconnect);
     }
     if (SwigDerivedClassHasMethod("OnRspChangePassword", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateITapQuoteAPINotify_3(SwigDirectorOnRspChangePassword);
     }
     if (SwigDerivedClassHasMethod("OnRspQryExchange", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateITapQuoteAPINotify_4(SwigDirectorOnRspQryExchange);
     }
     if (SwigDerivedClassHasMethod("OnRspQryCommodity", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegateITapQuoteAPINotify_5(SwigDirectorOnRspQryCommodity);
     }
     if (SwigDerivedClassHasMethod("OnRspQryTimeBucketOfCommodity", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegateITapQuoteAPINotify_6(SwigDirectorOnRspQryTimeBucketOfCommodity);
     }
     if (SwigDerivedClassHasMethod("OnRtnTimeBucketOfCommodity", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegateITapQuoteAPINotify_7(SwigDirectorOnRtnTimeBucketOfCommodity);
     }
     if (SwigDerivedClassHasMethod("OnRspQryContract", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegateITapQuoteAPINotify_8(SwigDirectorOnRspQryContract);
     }
     if (SwigDerivedClassHasMethod("OnRtnContract", swigMethodTypes9))
     {
         swigDelegate9 = new SwigDelegateITapQuoteAPINotify_9(SwigDirectorOnRtnContract);
     }
     if (SwigDerivedClassHasMethod("OnRspSubscribeQuote", swigMethodTypes10))
     {
         swigDelegate10 = new SwigDelegateITapQuoteAPINotify_10(SwigDirectorOnRspSubscribeQuote);
     }
     if (SwigDerivedClassHasMethod("OnRspUnSubscribeQuote", swigMethodTypes11))
     {
         swigDelegate11 = new SwigDelegateITapQuoteAPINotify_11(SwigDirectorOnRspUnSubscribeQuote);
     }
     if (SwigDerivedClassHasMethod("OnRtnQuote", swigMethodTypes12))
     {
         swigDelegate12 = new SwigDelegateITapQuoteAPINotify_12(SwigDirectorOnRtnQuote);
     }
     if (SwigDerivedClassHasMethod("OnRspQryHisQuote", swigMethodTypes13))
     {
         swigDelegate13 = new SwigDelegateITapQuoteAPINotify_13(SwigDirectorOnRspQryHisQuote);
     }
     TapQuotePINVOKE.ITapQuoteAPINotify_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13);
 }
Ejemplo n.º 8
0
        public virtual TapAPIQuoteWhole GetFullQuote(TapAPIContract contract)
        {
            IntPtr           cPtr = TapQuotePINVOKE.ITapQuoteAPI_GetFullQuote(swigCPtr, TapAPIContract.getCPtr(contract));
            TapAPIQuoteWhole ret  = (cPtr == IntPtr.Zero) ? null : new TapAPIQuoteWhole(cPtr, false);

            return(ret);
        }
Ejemplo n.º 9
0
 public TapAPIHisQuote(TapAPIHisQuote other) : this(TapQuotePINVOKE.new_TapAPIHisQuote__SWIG_1(TapAPIHisQuote.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public ITapQuoteAPINotify(ITapQuoteAPINotify other) : this(TapQuotePINVOKE.new_ITapQuoteAPINotify__SWIG_1(ITapQuoteAPINotify.getCPtr(other)), true)
 {
     if (TapQuotePINVOKE.SWIGPendingException.Pending)
     {
         throw TapQuotePINVOKE.SWIGPendingException.Retrieve();
     }
     SwigDirectorConnect();
 }
Ejemplo n.º 11
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 TapQuotePINVOKE.delete_TapAPIChangePasswordReq(swigCPtr);
             }
             swigCPtr = new HandleRef(null, IntPtr.Zero);
         }
         GC.SuppressFinalize(this);
     }
 }
Ejemplo n.º 12
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 TapQuotePINVOKE.delete_TapAPITimeBucketOfCommodityInfo(swigCPtr);
             }
             swigCPtr = new HandleRef(null, IntPtr.Zero);
         }
         GC.SuppressFinalize(this);
     }
 }
 public virtual void OnRspSubscribeQuote(uint sessionID, int errorCode, char isLast, TapAPIQuoteWhole info)
 {
     TapQuotePINVOKE.ITapQuoteAPINotify_OnRspSubscribeQuote(swigCPtr, sessionID, errorCode, isLast, TapAPIQuoteWhole.getCPtr(info));
 }
Ejemplo n.º 14
0
        public virtual int QryContract(out uint sessionID, TapAPICommodity qryReq)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_QryContract(swigCPtr, out sessionID, TapAPICommodity.getCPtr(qryReq));

            return(ret);
        }
Ejemplo n.º 15
0
 public TapAPIQuoteLoginAuth() : this(TapQuotePINVOKE.new_TapAPIQuoteLoginAuth__SWIG_0(), true)
 {
 }
Ejemplo n.º 16
0
        public virtual int UnSubscribeQuote(out uint sessionID, TapAPIContract contract)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_UnSubscribeQuote(swigCPtr, out sessionID, TapAPIContract.getCPtr(contract));

            return(ret);
        }
Ejemplo n.º 17
0
 public TapAPIContract() : this(TapQuotePINVOKE.new_TapAPIContract__SWIG_0(), true)
 {
 }
Ejemplo n.º 18
0
        public virtual int QryHisQuote(out uint sessionID, TapAPIHisQuoteQryReq qryReq)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_QryHisQuote(swigCPtr, out sessionID, TapAPIHisQuoteQryReq.getCPtr(qryReq));

            return(ret);
        }
Ejemplo n.º 19
0
        public virtual int SetHostAddress(string IP, ushort port)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_SetHostAddress(swigCPtr, IP, port);

            return(ret);
        }
Ejemplo n.º 20
0
        public virtual int QryTradingTimeBucketOfCommodity(out uint sessionID, TapAPICommodity qryReq)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_QryTradingTimeBucketOfCommodity(swigCPtr, out sessionID, TapAPICommodity.getCPtr(qryReq));

            return(ret);
        }
Ejemplo n.º 21
0
        public virtual int QryCommodity(out uint sessionID)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_QryCommodity(swigCPtr, out sessionID);

            return(ret);
        }
Ejemplo n.º 22
0
        public virtual int GetServerTime(SWIGTYPE_p_a_20__char datetime)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_GetServerTime(swigCPtr, SWIGTYPE_p_a_20__char.getCPtr(datetime));

            return(ret);
        }
Ejemplo n.º 23
0
 public TapAPIChangePasswordReq() : this(TapQuotePINVOKE.new_TapAPIChangePasswordReq__SWIG_0(), true)
 {
 }
Ejemplo n.º 24
0
        public virtual int Disconnect()
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_Disconnect(swigCPtr);

            return(ret);
        }
Ejemplo n.º 25
0
        public virtual int Login(TapAPIQuoteLoginAuth loginAuth)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_Login(swigCPtr, TapAPIQuoteLoginAuth.getCPtr(loginAuth));

            return(ret);
        }
 public TapAPITradingTimeBucket() : this(TapQuotePINVOKE.new_TapAPITradingTimeBucket__SWIG_0(), true)
 {
 }
Ejemplo n.º 27
0
 public TapAPICommodity() : this(TapQuotePINVOKE.new_TapAPICommodity__SWIG_0(), true)
 {
 }
Ejemplo n.º 28
0
        public virtual int SetAPINotify(ITapQuoteAPINotify apiNotify)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_SetAPINotify(swigCPtr, ITapQuoteAPINotify.getCPtr(apiNotify));

            return(ret);
        }
Ejemplo n.º 29
0
        public virtual int ChangePassword(out uint sessionID, TapAPIChangePasswordReq req)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_ChangePassword(swigCPtr, out sessionID, TapAPIChangePasswordReq.getCPtr(req));

            return(ret);
        }
Ejemplo n.º 30
0
        public virtual int QryExchange(out uint sessionID)
        {
            int ret = TapQuotePINVOKE.ITapQuoteAPI_QryExchange(swigCPtr, out sessionID);

            return(ret);
        }