public void OnTagRemoved(Sensors sensor) { //Log to console Debug.WriteLine("Tag removed"); //1. Pass command through queue Queue.RemoveFromQueue(SensorQueueConverter.Convert(sensor)); }
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(); }