Пример #1
0
        public void OnTagRemoved(Sensors sensor)
        {
            //Log to console
            Debug.WriteLine("Tag removed");

            //1. Pass command through queue
            Queue.RemoveFromQueue(SensorQueueConverter.Convert(sensor));
        }
Пример #2
0
        public void OnTagAdded(Sensors sensor, string TagIdentifier)
        {
            //Log to console
            Debug.WriteLine("Tag added: " + TagIdentifier);

            //1. Resolve tag from database
            Video vid = ResolveTag(TagIdentifier);

            if (vid == null)
            {
                return;
            }

            //2. Add the new video to the queue
            Queue.AddToQueue(vid, SensorQueueConverter.Convert(sensor));

            //3. Start the Engine.
            Ignite();
        }