21 lines
1.4 KiB
Java
21 lines
1.4 KiB
Java
package com.discord.widgets.chat.input;
|
|
|
|
import com.discord.models.commands.ApplicationCommandOption;
|
|
import com.discord.widgets.chat.input.applicationcommands.WidgetChatInputModelMappingFunctions;
|
|
import com.discord.widgets.chat.input.models.InputSelectionModel;
|
|
import com.discord.widgets.chat.input.models.VerifiedCommandMentionInputModel;
|
|
import d0.z.d.m;
|
|
import kotlin.ranges.IntRange;
|
|
import rx.functions.Func2;
|
|
/* compiled from: WidgetChatInputAutocomplete.kt */
|
|
public final class WidgetChatInputAutocomplete$configureDataSubscriptions$10<T1, T2, R> implements Func2<IntRange, VerifiedCommandMentionInputModel, InputSelectionModel> {
|
|
public static final WidgetChatInputAutocomplete$configureDataSubscriptions$10 INSTANCE = new WidgetChatInputAutocomplete$configureDataSubscriptions$10();
|
|
|
|
public final InputSelectionModel call(IntRange intRange, VerifiedCommandMentionInputModel verifiedCommandMentionInputModel) {
|
|
ApplicationCommandOption selectedOption = WidgetChatInputModelMappingFunctions.INSTANCE.getSelectedOption(intRange.getFirst(), verifiedCommandMentionInputModel.getInputCommandOptions().getInputRanges());
|
|
m.checkNotNullExpressionValue(verifiedCommandMentionInputModel, "inputModel");
|
|
m.checkNotNullExpressionValue(intRange, "selection");
|
|
return new InputSelectionModel(verifiedCommandMentionInputModel, selectedOption, intRange);
|
|
}
|
|
}
|