mutters-ink-bot/src/main/java/com/rabidgremlin/mutters/bot/ink/functions/SetLongTermAttributeFunction.java
@Override
  public void execute(CurrentResponse currentResponse, Session session, IntentMatch intentMatch, Story story, String param)
  {
    FunctionDetails details = FunctionHelper.parseFunctionString(param);

    if (details.getFunctionParams() == null)
    {
      throw new IllegalArgumentException("Missing name and value values for SET_LONG_TERM_ATTR");
    }

    String name = details.getFunctionParams().get("name");
    if (name == null)
    {
      throw new IllegalArgumentException("Missing name value for SET_LONG_TERM_ATTR");
    }

    String value = details.getFunctionParams().get("value");
    if (value == null)
    {
      throw new IllegalArgumentException("Missing value value for SET_LONG_TERM_ATTR");
    }

    session.setLongTermAttribute(name, value);
  }
/*
   * (non-Javadoc)
   * 
   * @see com.rabidgremlin.mutters.bot.ink.InkBotFunction#respondexecute(CurrentResponse currentResponse, Session
   * session, IntentMatch intentMatch, Story story, String param)
   */


@see com.rabidgremlin.mutters.bot.ink.InkBotFunction#respondexecute(CurrentResponse currentResponse, Session
session, IntentMatch intentMatch, Story story, String param)
@see com . rabidgremlin . mutters . bot . ink . InkBotFunction#respondexecute ( CurrentResponse currentResponse Session session IntentMatch intentMatch Story story String param )
@Override
  public void execute(CurrentResponse currentResponse, Session session, IntentMatch intentMatch, Story story, String param)
  {
    FunctionDetails details = FunctionHelper.parseFunctionString(param);
    if (details.getFunctionParams() == null)
    {
      throw new IllegalArgumentException("Missing name and value values for SET_LONG_TERM_ATTR");
    }
    String name = details.getFunctionParams().get("name");
    if (name == null)
    {
      throw new IllegalArgumentException("Missing name value for SET_LONG_TERM_ATTR");
    }
    String value = details.getFunctionParams().get("value");
    if (value == null)
    {
      throw new IllegalArgumentException("Missing value value for SET_LONG_TERM_ATTR");
    }
    session.setLongTermAttribute(name, value);
  }
@ Override public void execute ( CurrentResponse currentResponse , Session session , IntentMatch intentMatch , Story story , String param ) { FunctionDetails details = FunctionHelper . parseFunctionString ( param ) ; if ( details . getFunctionParams ( ) == null ) { throw new IllegalArgumentException ( "Missing name and value values for SET_LONG_TERM_ATTR" ) ; } String name = details . getFunctionParams ( ) . get ( "name" ) ; if ( name == null ) { throw new IllegalArgumentException ( "Missing name value for SET_LONG_TERM_ATTR" ) ; } String value = details . getFunctionParams ( ) . get ( "value" ) ; if ( value == null ) { throw new IllegalArgumentException ( "Missing value value for SET_LONG_TERM_ATTR" ) ; } session . setLongTermAttribute ( name , value ) ; }
(non-Javadoc)
( non - Javadoc )