mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-05 16:05:16 +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.utilities.guava.Optional;
|
|
|
|
import org.session.libsession.messaging.sending_receiving.link_preview.LinkPreview;
|
|
import org.session.libsession.utilities.Address;
|
|
import org.session.libsession.utilities.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);
|
|
}
|
|
}
|