示例#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");
     }
 }
示例#3
0
 private void OnSessionEvent(int playerID, SessionEventType type)
 {
     if (playerID != this.playerID)
     {
         return;
     }
     if (onSessionEvent != null)
     {
         onSessionEvent(type);
     }
 }
示例#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.
     }
 }
示例#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);
         }
     }
 }
示例#8
0
 public SessionEvent(SessionEventType eventType)
 {
     EventType = eventType;
 }
示例#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));
 }
示例#12
0
 public SessionEvent(string userName, int commitId, SessionEventType eventType)
 {
     UserName  = userName;
     CommitId  = commitId;
     EventType = eventType;
 }
示例#13
0
 void onSessionEvent(SessionEventType type, string session_id)
 {
 }
示例#14
0
 public SessionEvent(SessionEventType eventType)
 {
     EventType = eventType;
 }
示例#15
0
 public SessionEvent(string userName, int commitId, SessionEventType eventType)
 {
     UserName = userName;
     CommitId = commitId;
     EventType = eventType;
 }
示例#16
0
 public static void OnSessionEvent(this IDatabase database, string userName, int commitId, SessionEventType eventType)
 {
     database.OnEvent(new SessionEvent(userName, commitId, eventType));
 }
示例#17
0
 private void onSessionEvent(SessionEventType type, string session_id)
 {
     Debug.LogFormat("[{0}] onSessionEvent - <color=blue>{1}</color>",
                     nameof(NetworkManager), type);
 }
示例#18
0
 private void onSessionEventReceived(SessionEventType type, string session_id)
 {
     // TODO(sorae): impl..
 }