private int loadEmotes(String json,String streamRestriction){
  if (streamRestriction != null && streamRestriction.equals("$global$")) {
    streamRestriction=null;
  }
  Set<Emoticon> emotes=parseEmotes(json,streamRestriction);
  Set<String> bots=parseBots(json);
  LOGGER.info("BTTV: Found " + emotes.size() + " emotes / "+ bots.size()+ " bots");
  listener.receivedEmoticons(emotes);
  listener.receivedBotNames(streamRestriction,bots);
  return emotes.size();
}

private int loadEmotes ( String json , String streamRestriction ) { if ( streamRestriction != null && streamRestriction . equals ( "$global$" ) ) { streamRestriction = null ; } Set < Emoticon > emotes = parseEmotes ( json , streamRestriction ) ; Set < String > bots = parseBots ( json ) ; LOGGER . info ( "BTTV: Found " + emotes . size ( ) + " emotes / " + bots . size ( ) + " bots" ) ; listener . receivedEmoticons ( emotes ) ; listener . receivedBotNames ( streamRestriction , bots ) ; return emotes . size ( ) ; }
load stuff from the given json in the context of the given channel restriction . the channel restriction can be " $ global $ " which means all channels .
