mutters-ink-bot/src/main/java/com/rabidgremlin/mutters/bot/ink/SessionUtils.java
public static void loadInkStoryState(Session session, StoryState storyState)
  {
    try
    {
      String stateJson = (String) session
          .getAttribute(SLOT_PREFIX + "0987654321STORYSTATE1234567890");
      if (stateJson != null)
      {
        storyState.loadJson(stateJson);
      }
    }
    catch (Exception e)
    {
      throw new BadInkStoryState("Unexpected error. Failed to load story state", e);
    }
  }
/**
   * Gets the user's current Ink story state from the session.
   * 
   * @param session The session.
   * @param storyState The story state.
   */
Gets the user's current Ink story state from the session.

@param session The session.
@param storyState The story state.
Gets the user ' s current Ink story state from the session . @param session The session . @param storyState The story state .
public static void loadInkStoryState(Session session, StoryState storyState)
  {
    try
    {
      String stateJson = (String) session
          .getAttribute(SLOT_PREFIX + "0987654321STORYSTATE1234567890");
      if (stateJson != null)
      {
        storyState.loadJson(stateJson);
      }
    }
    catch (Exception e)
    {
      throw new BadInkStoryState("Unexpected error. Failed to load story state", e);
    }
  }
public static void loadInkStoryState ( Session session , StoryState storyState ) { try { String stateJson = ( String ) session . getAttribute ( SLOT_PREFIX + "0987654321STORYSTATE1234567890" ) ; if ( stateJson != null ) { storyState . loadJson ( stateJson ) ; } } catch ( Exception e ) { throw new BadInkStoryState ( "Unexpected error. Failed to load story state" , e ) ; } }
Gets the user's current Ink story state from the session.
Gets the user ' s current Ink story state from the session .