Example #1
0
 public BuddyVector(BuddyVector other) : this(pjsua2PINVOKE.new_BuddyVector__SWIG_1(BuddyVector.getCPtr(other)), true)
 {
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public BuddyVectorEnumerator(BuddyVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Example #3
0
 public void SetRange(int index, BuddyVector values)
 {
     pjsua2PINVOKE.BuddyVector_SetRange(swigCPtr, index, BuddyVector.getCPtr(values));
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
    public BuddyVector enumBuddies()
    {
        BuddyVector ret = new BuddyVector(pjsua2PINVOKE.Account_enumBuddies(swigCPtr), false);

        if (pjsua2PINVOKE.SWIGPendingException.Pending)
        {
            throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #5
0
        public static BuddyVector Repeat(Buddy value, int count)
        {
            global::System.IntPtr cPtr = pjsua2PINVOKE.BuddyVector_Repeat(Buddy.getCPtr(value), count);
            BuddyVector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BuddyVector(cPtr, true);

            if (pjsua2PINVOKE.SWIGPendingException.Pending)
            {
                throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #6
0
        public BuddyVector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = pjsua2PINVOKE.BuddyVector_GetRange(swigCPtr, index, count);
            BuddyVector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BuddyVector(cPtr, true);

            if (pjsua2PINVOKE.SWIGPendingException.Pending)
            {
                throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BuddyVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #8
0
 public BuddyVector enumBuddies()
 {
     BuddyVector ret = new BuddyVector(pjsua2PINVOKE.Account_enumBuddies(swigCPtr), false);
     if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }