mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
13c72779af
We will now show a small footer under quotes for messages that you don't have locally. Also fixes #7850
45 lines
1,018 B
Java
45 lines
1,018 B
Java
package org.thoughtcrime.securesms.database.model;
|
|
|
|
|
|
import android.support.annotation.NonNull;
|
|
import android.support.annotation.Nullable;
|
|
|
|
import org.thoughtcrime.securesms.database.Address;
|
|
import org.thoughtcrime.securesms.mms.SlideDeck;
|
|
|
|
public class Quote {
|
|
|
|
private final long id;
|
|
private final Address author;
|
|
private final String text;
|
|
private final boolean missing;
|
|
private final SlideDeck attachment;
|
|
|
|
public Quote(long id, @NonNull Address author, @Nullable String text, boolean missing, @NonNull SlideDeck attachment) {
|
|
this.id = id;
|
|
this.author = author;
|
|
this.text = text;
|
|
this.missing = missing;
|
|
this.attachment = attachment;
|
|
}
|
|
|
|
public long getId() {
|
|
return id;
|
|
}
|
|
|
|
public @NonNull Address getAuthor() {
|
|
return author;
|
|
}
|
|
|
|
public @Nullable String getText() {
|
|
return text;
|
|
}
|
|
|
|
public boolean isOriginalMissing() {
|
|
return missing;
|
|
}
|
|
|
|
public @NonNull SlideDeck getAttachment() {
|
|
return attachment;
|
|
}
|
|
}
|