Ejemplo n.º 1
0
 public virtual void OnCreateFailed(XString reason)
 {
     if (SwigDerivedClassHasMethod("OnCreateFailed", swigMethodTypes1))
     {
         SharingClientPINVOKE.SessionManagerListener_OnCreateFailedSwigExplicitSessionManagerListener(swigCPtr, XString.getCPtr(reason));
     }
     else
     {
         SharingClientPINVOKE.SessionManagerListener_OnCreateFailed(swigCPtr, XString.getCPtr(reason));
     }
 }
 public virtual void Write(XString value)
 {
     SharingClientPINVOKE.NetworkOutMessage_Write__SWIG_6(swigCPtr, XString.getCPtr(value));
 }
 public void SetRemoteAddress(XString remoteNameOrIP)
 {
     SharingClientPINVOKE.DirectPairConnector_SetRemoteAddress(swigCPtr, XString.getCPtr(remoteNameOrIP));
 }
Ejemplo n.º 4
0
        public bool IsEqual(XString otherStr)
        {
            bool ret = SharingClientPINVOKE.XString_IsEqual(swigCPtr, XString.getCPtr(otherStr));

            return(ret);
        }
Ejemplo n.º 5
0
 public virtual void SetServerConnectionInfo(XString address, uint port)
 {
     SharingClientPINVOKE.SharingManager_SetServerConnectionInfo(swigCPtr, XString.getCPtr(address), port);
 }
Ejemplo n.º 6
0
 public virtual bool UploadAnchor(Room room, XString anchorName, byte[] data, int dataSize)
 {
     global::System.Runtime.InteropServices.GCHandle pinHandle_data = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned); try {
         {
             bool ret = SharingClientPINVOKE.RoomManager_UploadAnchor(swigCPtr, Room.getCPtr(room), XString.getCPtr(anchorName), (global::System.IntPtr)pinHandle_data.AddrOfPinnedObject(), dataSize);
             return(ret);
         }
     } finally { pinHandle_data.Free(); }
 }
Ejemplo n.º 7
0
 public unsafe bool UploadAnchor(Room room, XString anchorName, byte[] data, int dataSize)
 {
     fixed(byte *swig_ptrTo_data = data)
     {
         {
             bool ret = SharingClientPINVOKE.RoomManager_UploadAnchor(swigCPtr, Room.getCPtr(room), XString.getCPtr(anchorName), (global::System.IntPtr)swig_ptrTo_data, dataSize);
             return(ret);
         }
     }
 }
 public virtual void OnStringElementChanged(long elementID, XString newValue)
 {
     if (SwigDerivedClassHasMethod("OnStringElementChanged", swigMethodTypes5))
     {
         SharingClientPINVOKE.ObjectElementListener_OnStringElementChangedSwigExplicitObjectElementListener(swigCPtr, elementID, XString.getCPtr(newValue));
     }
     else
     {
         SharingClientPINVOKE.ObjectElementListener_OnStringElementChanged(swigCPtr, elementID, XString.getCPtr(newValue));
     }
 }
Ejemplo n.º 9
0
        public virtual FloatArrayElement CreateFloatArrayElement(XString name)
        {
            System.IntPtr     cPtr = SharingClientPINVOKE.ObjectElement_CreateFloatArrayElement(swigCPtr, XString.getCPtr(name));
            FloatArrayElement ret  = (cPtr == System.IntPtr.Zero) ? null : new FloatArrayElement(cPtr, true);

            return(ret);
        }
Ejemplo n.º 10
0
        public virtual ObjectElement CreateObjectElement(XString name, XString objectType)
        {
            System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateObjectElement__SWIG_1(swigCPtr, XString.getCPtr(name), XString.getCPtr(objectType));
            ObjectElement ret  = (cPtr == System.IntPtr.Zero) ? null : new ObjectElement(cPtr, true);

            return(ret);
        }
Ejemplo n.º 11
0
 public virtual void InsertValue(int index, XString value)
 {
     SharingClientPINVOKE.StringArrayElement_InsertValue(swigCPtr, index, XString.getCPtr(value));
 }
Ejemplo n.º 12
0
 public virtual void SetValue(int index, XString newValue)
 {
     SharingClientPINVOKE.StringArrayElement_SetValue(swigCPtr, index, XString.getCPtr(newValue));
 }
        public virtual FloatElement CreateFloatElement(XString name, float value)
        {
            global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateFloatElement(swigCPtr, XString.getCPtr(name), value);
            FloatElement          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FloatElement(cPtr, true);

            return(ret);
        }
        public virtual IntArrayElement CreateIntArrayElement(XString name)
        {
            global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateIntArrayElement(swigCPtr, XString.getCPtr(name));
            IntArrayElement       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new IntArrayElement(cPtr, true);

            return(ret);
        }
        public virtual bool CreateSession(XString sessionName, SessionType type)
        {
            bool ret = SharingClientPINVOKE.SessionManager_CreateSession__SWIG_1(swigCPtr, XString.getCPtr(sessionName), (int)type);

            return(ret);
        }
Ejemplo n.º 16
0
        public virtual Element GetElement(XString name)
        {
            System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_GetElement__SWIG_1(swigCPtr, XString.getCPtr(name));
            Element       ret  = (cPtr == System.IntPtr.Zero) ? null : new Element(cPtr, true);

            return(ret);
        }
Ejemplo n.º 17
0
 private global::System.IntPtr SwigDirectorGetAddress(int index)
 {
     return(XString.getCPtr(GetAddress(index)).Handle);
 }
Ejemplo n.º 18
0
        public virtual DoubleElement CreateDoubleElement(XString name, double value)
        {
            System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateDoubleElement(swigCPtr, XString.getCPtr(name), value);
            DoubleElement ret  = (cPtr == System.IntPtr.Zero) ? null : new DoubleElement(cPtr, true);

            return(ret);
        }
Ejemplo n.º 19
0
 public virtual void OnValueRemoved(int index, XString value)
 {
     if (SwigDerivedClassHasMethod("OnValueRemoved", swigMethodTypes2))
     {
         SharingClientPINVOKE.StringArrayListener_OnValueRemovedSwigExplicitStringArrayListener(swigCPtr, index, XString.getCPtr(value));
     }
     else
     {
         SharingClientPINVOKE.StringArrayListener_OnValueRemoved(swigCPtr, index, XString.getCPtr(value));
     }
 }
Ejemplo n.º 20
0
        public virtual StringElement CreateStringElement(XString name, XString value)
        {
            System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateStringElement(swigCPtr, XString.getCPtr(name), XString.getCPtr(value));
            StringElement ret  = (cPtr == System.IntPtr.Zero) ? null : new StringElement(cPtr, true);

            return(ret);
        }
Ejemplo n.º 21
0
        public virtual bool DownloadAnchor(Room room, XString anchorName)
        {
            bool ret = SharingClientPINVOKE.RoomManager_DownloadAnchor(swigCPtr, Room.getCPtr(room), XString.getCPtr(anchorName));

            return(ret);
        }
Ejemplo n.º 22
0
 public virtual void SetName(XString name)
 {
     SharingClientPINVOKE.UserPresenceManager_SetName(swigCPtr, XString.getCPtr(name));
 }
Ejemplo n.º 23
0
        public virtual Room CreateRoom(XString roomName, long roomID, bool keepOpenWhenEmpty)
        {
            global::System.IntPtr cPtr = SharingClientPINVOKE.RoomManager_CreateRoom(swigCPtr, XString.getCPtr(roomName), roomID, keepOpenWhenEmpty);
            Room ret = (cPtr == global::System.IntPtr.Zero) ? null : new Room(cPtr, true);

            return(ret);
        }
Ejemplo n.º 24
0
 public virtual void OnAnchorsDownloaded(bool successful, AnchorDownloadRequest request, XString failureReason)
 {
     if (SwigDerivedClassHasMethod("OnAnchorsDownloaded", swigMethodTypes5))
     {
         SharingClientPINVOKE.RoomManagerListener_OnAnchorsDownloadedSwigExplicitRoomManagerListener(swigCPtr, successful, AnchorDownloadRequest.getCPtr(request), XString.getCPtr(failureReason));
     }
     else
     {
         SharingClientPINVOKE.RoomManagerListener_OnAnchorsDownloaded(swigCPtr, successful, AnchorDownloadRequest.getCPtr(request), XString.getCPtr(failureReason));
     }
 }
Ejemplo n.º 25
0
 public virtual void SetUserName(XString name)
 {
     SharingClientPINVOKE.SharingManager_SetUserName(swigCPtr, XString.getCPtr(name));
 }
Ejemplo n.º 26
0
 public virtual void OnAnchorUploadComplete(bool successful, XString failureReason)
 {
     if (SwigDerivedClassHasMethod("OnAnchorUploadComplete", swigMethodTypes6))
     {
         SharingClientPINVOKE.RoomManagerListener_OnAnchorUploadCompleteSwigExplicitRoomManagerListener(swigCPtr, successful, XString.getCPtr(failureReason));
     }
     else
     {
         SharingClientPINVOKE.RoomManagerListener_OnAnchorUploadComplete(swigCPtr, successful, XString.getCPtr(failureReason));
     }
 }
 public DirectPairConnector(XString remoteNameOrIP, ushort port) : this(SharingClientPINVOKE.new_DirectPairConnector__SWIG_2(XString.getCPtr(remoteNameOrIP), port), true)
 {
 }
Ejemplo n.º 28
0
 public virtual void SetValue(XString newString)
 {
     SharingClientPINVOKE.StringElement_SetValue(swigCPtr, XString.getCPtr(newString));
 }
        public virtual bool CreateSession(XString sessionName)
        {
            bool ret = SharingClientPINVOKE.SessionManager_CreateSession(swigCPtr, XString.getCPtr(sessionName));

            return(ret);
        }
        public virtual ObjectElement CreateObjectElement(XString name, User owner)
        {
            global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateObjectElement__SWIG_0(swigCPtr, XString.getCPtr(name), User.getCPtr(owner));
            ObjectElement         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ObjectElement(cPtr, true);

            return(ret);
        }