mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-11 10:44:21 +00:00
43 lines
1.7 KiB
Java
43 lines
1.7 KiB
Java
package org.thoughtcrime.securesms;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import android.view.View;
|
|
|
|
import org.thoughtcrime.securesms.contactshare.Contact;
|
|
import org.thoughtcrime.securesms.database.Address;
|
|
import org.thoughtcrime.securesms.database.model.MessageRecord;
|
|
import org.thoughtcrime.securesms.database.model.MmsMessageRecord;
|
|
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
|
|
import org.thoughtcrime.securesms.mms.GlideRequests;
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
import org.thoughtcrime.securesms.stickers.StickerLocator;
|
|
import org.session.libsignal.libsignal.util.guava.Optional;
|
|
|
|
import java.util.List;
|
|
import java.util.Locale;
|
|
import java.util.Set;
|
|
|
|
public interface BindableConversationItem extends Unbindable {
|
|
void bind(@NonNull MessageRecord messageRecord,
|
|
@NonNull Optional<MessageRecord> previousMessageRecord,
|
|
@NonNull Optional<MessageRecord> nextMessageRecord,
|
|
@NonNull GlideRequests glideRequests,
|
|
@NonNull Locale locale,
|
|
@NonNull Set<MessageRecord> batchSelected,
|
|
@NonNull Recipient recipients,
|
|
@Nullable String searchQuery,
|
|
boolean pulseHighlight);
|
|
|
|
MessageRecord getMessageRecord();
|
|
|
|
void setEventListener(@Nullable EventListener listener);
|
|
|
|
interface EventListener {
|
|
void onQuoteClicked(MmsMessageRecord messageRecord);
|
|
void onLinkPreviewClicked(@NonNull LinkPreview linkPreview);
|
|
void onMoreTextClicked(@NonNull Address conversationAddress, long messageId, boolean isMms);
|
|
void onStickerClicked(@NonNull StickerLocator stickerLocator);
|
|
}
|
|
}
|