AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
SessionManager.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
11 namespace HoloToolkit.Sharing {
12 
13 public class SessionManager : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal SessionManager(global::System.IntPtr cPtr, bool cMemoryOwn) {
18  swigCMemOwn = cMemoryOwn;
19  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20  }
21 
22  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SessionManager obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
26  ~SessionManager() {
27  Dispose();
28  }
29 
30  public virtual void Dispose() {
31  lock(this) {
32  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33  if (swigCMemOwn) {
34  swigCMemOwn = false;
36  }
37  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38  }
39  global::System.GC.SuppressFinalize(this);
40  }
41  }
42 
43  public virtual void AddListener(SessionManagerListener newListener) {
45  }
46 
47  public virtual void RemoveListener(SessionManagerListener oldListener) {
49  }
50 
51  public virtual bool CreateSession(XString sessionName) {
52  bool ret = SharingClientPINVOKE.SessionManager_CreateSession__SWIG_0(swigCPtr, XString.getCPtr(sessionName));
53  return ret;
54  }
55 
56  public virtual bool CreateSession(XString sessionName, SessionType type) {
57  bool ret = SharingClientPINVOKE.SessionManager_CreateSession__SWIG_1(swigCPtr, XString.getCPtr(sessionName), (int)type);
58  return ret;
59  }
60 
61  public virtual int GetSessionCount() {
63  return ret;
64  }
65 
66  public virtual Session GetSession(int index) {
67  global::System.IntPtr cPtr = SharingClientPINVOKE.SessionManager_GetSession(swigCPtr, index);
68  Session ret = (cPtr == global::System.IntPtr.Zero) ? null : new Session(cPtr, true);
69  return ret;
70  }
71 
72  public virtual Session GetCurrentSession() {
73  global::System.IntPtr cPtr = SharingClientPINVOKE.SessionManager_GetCurrentSession(swigCPtr);
74  Session ret = (cPtr == global::System.IntPtr.Zero) ? null : new Session(cPtr, true);
75  return ret;
76  }
77 
78  public virtual User GetCurrentUser() {
79  global::System.IntPtr cPtr = SharingClientPINVOKE.SessionManager_GetCurrentUser(swigCPtr);
80  User ret = (cPtr == global::System.IntPtr.Zero) ? null : new User(cPtr, true);
81  return ret;
82  }
83 
84  public virtual bool IsServerConnected() {
86  return ret;
87  }
88 
89 }
90 
91 }
virtual void AddListener(SessionManagerListener newListener)
static void SessionManager_AddListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool SessionManager_IsServerConnected(global::System.Runtime.InteropServices.HandleRef jarg1)
static int SessionManager_GetSessionCount(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual bool CreateSession(XString sessionName, SessionType type)
virtual bool CreateSession(XString sessionName)
static bool SessionManager_CreateSession__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
virtual Session GetSession(int index)
static global::System.IntPtr SessionManager_GetCurrentSession(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr SessionManager_GetSession(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SessionManager_RemoveListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr SessionManager_GetCurrentUser(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_SessionManager(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void RemoveListener(SessionManagerListener oldListener)
static bool SessionManager_CreateSession__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)