예제 #1
0
 protected Prompt acceptValidatedInput(final ConversationContext context, final Number input) {
   final int delay = Math.max(input.intValue(), 0);
   context.setSessionData((Object) "created-trigger", (Object) new DelayTrigger(delay));
   return (Prompt) context.getSessionData((Object) "return-to");
 }
예제 #2
0
 protected Prompt acceptValidatedInput(final ConversationContext context, final Number input) {
   final float speed = (float) Math.max(input.doubleValue(), 0.0);
   context.setSessionData((Object) "created-trigger", (Object) new SpeedTrigger(speed));
   return (Prompt) context.getSessionData((Object) "return-to");
 }