discord-jadx/app/src/main/java/com/discord/widgets/chat/pins/WidgetChannelPinnedMessages...

187 lines
10 KiB
Java

package com.discord.widgets.chat.pins;
import android.net.Uri;
import androidx.fragment.app.FragmentManager;
import c.a.d.l;
import com.discord.api.activity.Activity;
import com.discord.api.application.Application;
import com.discord.api.channel.Channel;
import com.discord.api.message.activity.MessageActivityType;
import com.discord.api.message.reaction.MessageReaction;
import com.discord.api.sticker.BaseSticker;
import com.discord.api.sticker.Sticker;
import com.discord.models.message.Message;
import com.discord.restapi.RestAPIParams;
import com.discord.stores.StoreChat;
import com.discord.stores.StoreStream;
import com.discord.widgets.chat.WidgetUrlActions;
import com.discord.widgets.chat.list.actions.WidgetChatListActions;
import com.discord.widgets.chat.list.adapter.WidgetChatListAdapter;
import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemCallMessage;
import d0.z.d.m;
/* compiled from: WidgetChannelPinnedMessages.kt */
public final class WidgetChannelPinnedMessages$onViewBound$1 implements WidgetChatListAdapter.EventHandler {
public final /* synthetic */ WidgetChannelPinnedMessages this$0;
public WidgetChannelPinnedMessages$onViewBound$1(WidgetChannelPinnedMessages widgetChannelPinnedMessages) {
this.this$0 = widgetChannelPinnedMessages;
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onBotUiComponentClicked(long j, Long l, long j2, long j3, Long l2, int i, RestAPIParams.ComponentInteractionData componentInteractionData) {
m.checkNotNullParameter(componentInteractionData, "componentSendData");
WidgetChatListAdapter.EventHandler.DefaultImpls.onBotUiComponentClicked(this, j, l, j2, j3, l2, i, componentInteractionData);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onCallMessageClicked(long j, WidgetChatListAdapterItemCallMessage.CallStatus callStatus) {
m.checkNotNullParameter(callStatus, "callStatus");
WidgetChatListAdapter.EventHandler.DefaultImpls.onCallMessageClicked(this, j, callStatus);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onCommandClicked(long j, Long l, long j2, long j3, long j4, long j5, String str) {
WidgetChatListAdapter.EventHandler.DefaultImpls.onCommandClicked(this, j, l, j2, j3, j4, j5, str);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onDismissClicked(Message message) {
m.checkNotNullParameter(message, "message");
WidgetChatListAdapter.EventHandler.DefaultImpls.onDismissClicked(this, message);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onInteractionStateUpdated(StoreChat.InteractionState interactionState) {
m.checkNotNullParameter(interactionState, "interactionState");
WidgetChatListAdapter.EventHandler.DefaultImpls.onInteractionStateUpdated(this, interactionState);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onListClicked() {
WidgetChatListAdapter.EventHandler.DefaultImpls.onListClicked(this);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onMessageAuthorAvatarClicked(Message message, long j) {
m.checkNotNullParameter(message, "message");
WidgetChatListAdapter.EventHandler.DefaultImpls.onMessageAuthorAvatarClicked(this, message, j);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onMessageAuthorLongClicked(Message message, Long l) {
m.checkNotNullParameter(message, "message");
WidgetChatListAdapter.EventHandler.DefaultImpls.onMessageAuthorLongClicked(this, message, l);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onMessageAuthorNameClicked(Message message, long j) {
m.checkNotNullParameter(message, "message");
WidgetChatListAdapter.EventHandler.DefaultImpls.onMessageAuthorNameClicked(this, message, j);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onMessageBlockedGroupClicked(Message message) {
m.checkNotNullParameter(message, "message");
WidgetChatListAdapter.EventHandler.DefaultImpls.onMessageBlockedGroupClicked(this, message);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onMessageClicked(Message message, boolean z2) {
m.checkNotNullParameter(message, "message");
StoreStream.Companion.getMessagesLoader().jumpToMessage(message.getChannelId(), message.getId());
l.c(this.this$0.requireContext(), false, null, 6);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onMessageLongClicked(Message message, CharSequence charSequence, boolean z2) {
m.checkNotNullParameter(message, "message");
m.checkNotNullParameter(charSequence, "formattedMessage");
WidgetChatListActions.Companion companion = WidgetChatListActions.Companion;
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
companion.showForPin(parentFragmentManager, message.getChannelId(), message.getId(), charSequence);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onOldestMessageId(long j, long j2) {
WidgetChatListAdapter.EventHandler.DefaultImpls.onOldestMessageId(this, j, j2);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onOpenPinsClicked(Message message) {
m.checkNotNullParameter(message, "message");
WidgetChatListAdapter.EventHandler.DefaultImpls.onOpenPinsClicked(this, message);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onQuickAddReactionClicked(long j, long j2, long j3, long j4) {
WidgetChatListAdapter.EventHandler.DefaultImpls.onQuickAddReactionClicked(this, j, j2, j3, j4);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public boolean onQuickDownloadClicked(Uri uri, String str) {
m.checkNotNullParameter(uri, "uri");
m.checkNotNullParameter(str, "fileName");
return WidgetChatListAdapter.EventHandler.DefaultImpls.onQuickDownloadClicked(this, uri, str);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onReactionClicked(long j, long j2, long j3, long j4, MessageReaction messageReaction, boolean z2) {
m.checkNotNullParameter(messageReaction, "reaction");
WidgetChatListAdapter.EventHandler.DefaultImpls.onReactionClicked(this, j, j2, j3, j4, messageReaction, z2);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onReactionLongClicked(long j, long j2, long j3, MessageReaction messageReaction) {
m.checkNotNullParameter(messageReaction, "reaction");
WidgetChatListAdapter.EventHandler.DefaultImpls.onReactionLongClicked(this, j, j2, j3, messageReaction);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onSendGreetMessageClicked(long j, int i, Sticker sticker) {
m.checkNotNullParameter(sticker, "sticker");
WidgetChatListAdapter.EventHandler.DefaultImpls.onSendGreetMessageClicked(this, j, i, sticker);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onStickerClicked(Message message, BaseSticker baseSticker) {
m.checkNotNullParameter(message, "message");
m.checkNotNullParameter(baseSticker, "sticker");
StoreStream.Companion.getMessagesLoader().jumpToMessage(message.getChannelId(), message.getId());
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onThreadClicked(Channel channel) {
m.checkNotNullParameter(channel, "channel");
WidgetChatListAdapter.EventHandler.DefaultImpls.onThreadClicked(this, channel);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onThreadLongClicked(Channel channel) {
m.checkNotNullParameter(channel, "channel");
WidgetChatListAdapter.EventHandler.DefaultImpls.onThreadLongClicked(this, channel);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onUrlLongClicked(String str) {
m.checkNotNullParameter(str, "url");
WidgetUrlActions.Companion companion = WidgetUrlActions.Companion;
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
companion.launch(parentFragmentManager, str);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onUserActivityAction(long j, long j2, long j3, MessageActivityType messageActivityType, Activity activity, Application application) {
m.checkNotNullParameter(messageActivityType, "messageActivityType");
m.checkNotNullParameter(activity, "activity");
m.checkNotNullParameter(application, "application");
WidgetChatListAdapter.EventHandler.DefaultImpls.onUserActivityAction(this, j, j2, j3, messageActivityType, activity, application);
}
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
public void onUserMentionClicked(long j, long j2, long j3) {
WidgetChatListAdapter.EventHandler.DefaultImpls.onUserMentionClicked(this, j, j2, j3);
}
}