mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
27 lines
637 B
Java
27 lines
637 B
Java
|
package org.thoughtcrime.securesms.longmessage;
|
||
|
|
||
|
import org.thoughtcrime.securesms.database.model.MessageRecord;
|
||
|
|
||
|
/**
|
||
|
* A wrapper around a {@link MessageRecord} and its extra text attachment expanded into a string
|
||
|
* held in memory.
|
||
|
*/
|
||
|
class LongMessage {
|
||
|
|
||
|
private final MessageRecord messageRecord;
|
||
|
private final String extraBody;
|
||
|
|
||
|
LongMessage(MessageRecord messageRecord, String extraBody) {
|
||
|
this.messageRecord = messageRecord;
|
||
|
this.extraBody = extraBody;
|
||
|
}
|
||
|
|
||
|
MessageRecord getMessageRecord() {
|
||
|
return messageRecord;
|
||
|
}
|
||
|
|
||
|
String getFullBody() {
|
||
|
return messageRecord.getBody() + extraBody;
|
||
|
}
|
||
|
}
|