Example #1
0
 void onSessionEvent(SessionEventType type, string sessionid)
 {
     if (type == SessionEventType.kStopped || type == SessionEventType.kClosed)
     {
         is_done_ = true;
     }
 }
 private void OnEvent(SessionEventType type)
 {
     if (type == SessionEventType.DemuxSuccess)
     {
         Debug.Log("Demux Success");
     }
 }
Example #3
0
 private void OnSessionEvent(int playerID, SessionEventType type)
 {
     if (playerID != this.playerID)
     {
         return;
     }
     if (onSessionEvent != null)
     {
         onSessionEvent(type);
     }
 }
Example #4
0
 void onSessionEvent(SessionEventType type, string sessionid)
 {
     if (type == SessionEventType.kConnected)
     {
         // All transports are connected.
     }
     else if (type == SessionEventType.kStopped)
     {
         // All transports are stopped.
     }
 }
Example #5
0
 void onSessionEvent(SessionEventType type, string sessionid)
 {
     if (type == SessionEventType.kOpened)
     {
         setButtonState(true);
     }
     else if (type == SessionEventType.kStopped)
     {
         if (!session_test_)
         {
             closeSession();
         }
     }
 }
 void OnSessionEvent(SessionEventType type, string sessionId)
 {
     if (type == SessionEventType.kConnected)
     {
         login_button_.interactable = true;
     }
     else if (type == SessionEventType.kStopped)
     {
         if (facebook_.IsLoggedIn)
         {
             facebook_.Logout();
             logged_in_ = false;
         }
     }
 }
 void onSessionEvent(SessionEventType type, string sessionid)
 {
     if (type == SessionEventType.kConnected)
     {
         if (ConnectedCallback != null)
         {
             ConnectedCallback(this);
         }
     }
     else if (type == SessionEventType.kStopped)
     {
         if (StoppedCallback != null)
         {
             StoppedCallback(this);
         }
     }
 }
Example #8
0
 public SessionEvent(SessionEventType eventType)
 {
     EventType = eventType;
 }
Example #9
0
 public SessionEventArgs(SessionEventType type, List <Order> list = null, string message = null)
 {
     EventType = type;
     Message   = message;
     OrderList = list ?? new List <Order>();
 }
 private void RaiseSessionEvent(SessionEventType eventType, dynamic data)
 {
     Always(() => eventCallback(new SessionEvent()
     {
         EventType = eventType,
         RecordingId = RecordingId,
         TimeStamp = DateTimeOffset.Now,
         Data = data
     }));
 }
 public static void OnSessionEvent(this IDatabase database, string userName, int commitId, SessionEventType eventType)
 {
     database.OnEvent(new SessionEvent(userName, commitId, eventType));
 }
Example #12
0
 public SessionEvent(string userName, int commitId, SessionEventType eventType)
 {
     UserName  = userName;
     CommitId  = commitId;
     EventType = eventType;
 }
Example #13
0
 void onSessionEvent(SessionEventType type, string session_id)
 {
 }
 public SessionEvent(SessionEventType eventType)
 {
     EventType = eventType;
 }
Example #15
0
 public SessionEvent(string userName, int commitId, SessionEventType eventType)
 {
     UserName = userName;
     CommitId = commitId;
     EventType = eventType;
 }
Example #16
0
 public static void OnSessionEvent(this IDatabase database, string userName, int commitId, SessionEventType eventType)
 {
     database.OnEvent(new SessionEvent(userName, commitId, eventType));
 }
Example #17
0
 private void onSessionEvent(SessionEventType type, string session_id)
 {
     Debug.LogFormat("[{0}] onSessionEvent - <color=blue>{1}</color>",
                     nameof(NetworkManager), type);
 }
Example #18
0
 private void onSessionEventReceived(SessionEventType type, string session_id)
 {
     // TODO(sorae): impl..
 }