Ejemplo n.º 1
0
        private RoomClass SwitchRoom(NuimoGesture gesture)
        {
            switch (gesture)
            {
            case NuimoGesture.SwipeLeft:
                CurrentRoom = CurrentRoom?.PreviousOrLast();
                break;

            case NuimoGesture.SwipeRight:
                CurrentRoom = CurrentRoom?.NextOrFirst();
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(gesture), gesture, null);
            }
            return(CurrentRoom.Value);
        }
Ejemplo n.º 2
0
 public NuimoGestureEvent(NuimoGesture gesture, int value)
 {
     Gesture = gesture;
     Value   = value;
 }