discord-jadx/app/src/main/java/com/discord/stores/StoreSearchQuery$parseAndQu...

31 lines
1.4 KiB
Java

package com.discord.stores;
import com.discord.stores.StoreSearch;
import com.discord.utilities.search.network.SearchQuery;
import com.discord.utilities.search.query.node.QueryNode;
import com.discord.utilities.search.validation.SearchData;
import d0.z.d.m;
import java.util.List;
import rx.functions.Func2;
/* compiled from: StoreSearchQuery.kt */
public final class StoreSearchQuery$parseAndQuery$2<T1, T2, R> implements Func2<List<QueryNode>, SearchData, SearchQuery> {
public final /* synthetic */ boolean $includeNsfw;
public final /* synthetic */ StoreSearch $searchStore;
public final /* synthetic */ StoreSearch.SearchTarget $searchTarget;
public StoreSearchQuery$parseAndQuery$2(StoreSearch storeSearch, StoreSearch.SearchTarget searchTarget, boolean z2) {
this.$searchStore = storeSearch;
this.$searchTarget = searchTarget;
this.$includeNsfw = z2;
}
public final SearchQuery call(List<QueryNode> list, SearchData searchData) {
QueryNode.Preprocessor preprocessor = QueryNode.Preprocessor;
m.checkNotNullExpressionValue(list, "queryNodes");
m.checkNotNullExpressionValue(searchData, "searchData");
preprocessor.preprocess(list, searchData);
this.$searchStore.persistQuery$app_productionBetaRelease(this.$searchTarget, list);
return new SearchQuery.Builder().setIncludeNsfw(this.$includeNsfw).buildFrom(list, searchData);
}
}