示例#1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("onNatDetectionComplete", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateEndpoint_0(SwigDirectorMethodonNatDetectionComplete);
     }
     if (SwigDerivedClassHasMethod("onNatCheckStunServersComplete", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateEndpoint_1(SwigDirectorMethodonNatCheckStunServersComplete);
     }
     if (SwigDerivedClassHasMethod("onTransportState", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateEndpoint_2(SwigDirectorMethodonTransportState);
     }
     if (SwigDerivedClassHasMethod("onTimer", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateEndpoint_3(SwigDirectorMethodonTimer);
     }
     if (SwigDerivedClassHasMethod("onSelectAccount", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateEndpoint_4(SwigDirectorMethodonSelectAccount);
     }
     if (SwigDerivedClassHasMethod("onIpChangeProgress", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegateEndpoint_5(SwigDirectorMethodonIpChangeProgress);
     }
     if (SwigDerivedClassHasMethod("onMediaEvent", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegateEndpoint_6(SwigDirectorMethodonMediaEvent);
     }
     pjsua2PINVOKE.Endpoint_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
 }
示例#2
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("onNatDetectionComplete", swigMethodTypes0))
       swigDelegate0 = new SwigDelegateEndpoint_0(SwigDirectoronNatDetectionComplete);
     if (SwigDerivedClassHasMethod("onNatCheckStunServersComplete", swigMethodTypes1))
       swigDelegate1 = new SwigDelegateEndpoint_1(SwigDirectoronNatCheckStunServersComplete);
     if (SwigDerivedClassHasMethod("onTransportState", swigMethodTypes2))
       swigDelegate2 = new SwigDelegateEndpoint_2(SwigDirectoronTransportState);
     if (SwigDerivedClassHasMethod("onTimer", swigMethodTypes3))
       swigDelegate3 = new SwigDelegateEndpoint_3(SwigDirectoronTimer);
     if (SwigDerivedClassHasMethod("onSelectAccount", swigMethodTypes4))
       swigDelegate4 = new SwigDelegateEndpoint_4(SwigDirectoronSelectAccount);
     pjsua2PINVOKE.Endpoint_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
 }