public void SendStatusUpdate(QueryStatusValue previous, QueryStatusValue current)
 {
     SendStatusUpdate(new QueryStatus()
     {
         PreviousStatus = previous, CurrentStatus = current
     });
 }
Beispiel #2
0
        void _sessionState_SystemLocked()
        {
            if (!IsEnabled) return;

            _oldState = PlayStateRequest(this);
            if (_oldState == QueryStatusValue.Playing)
                PauseRequest(this);
        }
        void _sessionState_SystemLocked()
        {
            if (!IsEnabled)
            {
                return;
            }

            _oldState = PlayStateRequest(this);
            if (_oldState == QueryStatusValue.Playing)
            {
                PauseRequest(this);
            }
        }
        public void SendStatusUpdate(QueryStatus status)
        {
            lock (_lastQueryStatusLock)
            {
                _lastQueryStatus = status.CurrentStatus;
            }

            Log.O("Status Update: {0} -> {1}",
                  status.PreviousStatus.ToString(),
                  status.CurrentStatus.ToString());

            foreach (var obj in _pcqList)
            {
                obj.StatusUpdateReceiver(status);
            }
        }
 public void SendStatusUpdate(QueryStatusValue current)
 {
     SendStatusUpdate(_lastQueryStatus, current);
 }
 public void SendStatusUpdate(QueryStatusValue previous, QueryStatusValue current)
 {
     SendStatusUpdate(new QueryStatus() { PreviousStatus = previous, CurrentStatus = current });
 }
        public void SendStatusUpdate(QueryStatus status)
        {
            lock (_lastQueryStatusLock)
            {
                _lastQueryStatus = status.CurrentStatus;
            }

            Log.O("Status Update: {0} -> {1}",
                status.PreviousStatus.ToString(),
                status.CurrentStatus.ToString());

            foreach (var obj in _pcqList)
            {
                obj.StatusUpdateReceiver(status);
            }
        }
 public void SendStatusUpdate(QueryStatusValue current)
 {
     SendStatusUpdate(_lastQueryStatus, current);
 }