use of com.amazon.dynamicparser.DynamicParser in project zype-firebuilder by zype.
the class ZypeSearchManager method getSearchContentsObservable.
private Observable<Object> getSearchContentsObservable(String feed, ISearchResult iSearchResult) {
DynamicParser parser = new DynamicParser();
ZypeContentTranslator zypeContentTranslator = new ZypeContentTranslator();
parser.addTranslatorImpl(zypeContentTranslator.getName(), zypeContentTranslator);
String[] params = new String[] { (String) "" };
return parser.cookRecipeObservable(recipeSearchContents, feed, null, params).map(contentAsObject -> {
Content content = (Content) contentAsObject;
if (content != null) {
iSearchResult.onSearchResult(content, false);
}
return content;
});
}
Aggregations