use of ai.saiy.android.custom.CustomHelper in project Saiy-PS by brandall76.
the class QuantumHelper method resolve.
public CustomResolver resolve(@NonNull final Context ctx, @NonNull final SupportedLanguage sl, @NonNull final CommandRequest cr) {
final long then = System.nanoTime();
final CustomHelperHolder holder = new CustomHelper().getCustomisationHolder(ctx);
final CustomResolver resolver = new CustomResolver();
final CustomCommandHelper cch = new CustomCommandHelper();
final ArrayList<String> manipulatedVoiceData = new Profanity(ctx, cr.getResultsArray(), sl).remove();
resolver.setCustom(cch.isCustomCommand(ctx, manipulatedVoiceData, sl, holder.getCustomCommandArray()));
resolver.setCustomCommandHelper(cch);
resolver.setVoiceData(manipulatedVoiceData);
if (DEBUG) {
MyLog.getElapsed(CLS_NAME, then);
}
return resolver;
}
Aggregations