private static List<InlineQueryResult> convertRaeResults(List<RaeService.RaeResult> raeResults){
  List<InlineQueryResult> results=new ArrayList<>();
  for (int i=0; i < raeResults.size(); i++) {
    RaeService.RaeResult raeResult=raeResults.get(i);
    InputTextMessageContent messageContent=new InputTextMessageContent();
    messageContent.disableWebPagePreview();
    messageContent.enableMarkdown(true);
    messageContent.setMessageText(raeResult.getDefinition());
    InlineQueryResultArticle article=new InlineQueryResultArticle();
    article.setInputMessageContent(messageContent);
    article.setId(Integer.toString(i));
    article.setTitle(raeResult.getTitle());
    article.setDescription(raeResult.getDescription());
    article.setThumbUrl(THUMBNAILBLUE);
    results.add(article);
  }
  return results;
}

private static List < InlineQueryResult > convertRaeResults ( List < RaeService . RaeResult > raeResults ) { List < InlineQueryResult > results = new ArrayList < > ( ) ; for ( int i = 0 ; i < raeResults . size ( ) ; i ++ ) { RaeService . RaeResult raeResult = raeResults . get ( i ) ; InputTextMessageContent messageContent = new InputTextMessageContent ( ) ; messageContent . disableWebPagePreview ( ) ; messageContent . enableMarkdown ( true ) ; messageContent . setMessageText ( raeResult . getDefinition ( ) ) ; InlineQueryResultArticle article = new InlineQueryResultArticle ( ) ; article . setInputMessageContent ( messageContent ) ; article . setId ( Integer . toString ( i ) ) ; article . setTitle ( raeResult . getTitle ( ) ) ; article . setDescription ( raeResult . getDescription ( ) ) ; article . setThumbUrl ( THUMBNAILBLUE ) ; results . add ( article ) ; } return results ; }
converts results from raeservice to a list of inlinequeryresultarticles
