mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
40 lines
1.5 KiB
Java
40 lines
1.5 KiB
Java
package org.thoughtcrime.securesms;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
|
|
|
|
import org.thoughtcrime.securesms.database.model.MessageRecord;
|
|
import org.thoughtcrime.securesms.database.model.MmsMessageRecord;
|
|
import org.thoughtcrime.securesms.mms.GlideRequests;
|
|
import org.session.libsignal.libsignal.util.guava.Optional;
|
|
|
|
import org.session.libsession.messaging.sending_receiving.linkpreview.LinkPreview;
|
|
import org.session.libsession.messaging.threads.Address;
|
|
import org.session.libsession.messaging.threads.recipients.Recipient;
|
|
|
|
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);
|
|
}
|
|
}
|