mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
37 lines
1.3 KiB
Java
37 lines
1.3 KiB
Java
package org.thoughtcrime.securesms.mms;
|
|
|
|
import android.support.annotation.NonNull;
|
|
import android.support.annotation.Nullable;
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
|
import org.thoughtcrime.securesms.contactshare.Contact;
|
|
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
public class OutgoingSecureMediaMessage extends OutgoingMediaMessage {
|
|
|
|
public OutgoingSecureMediaMessage(Recipient recipient, String body,
|
|
List<Attachment> attachments,
|
|
long sentTimeMillis,
|
|
int distributionType,
|
|
long expiresIn,
|
|
@Nullable QuoteModel quote,
|
|
@NonNull List<Contact> contacts,
|
|
@NonNull List<LinkPreview> previews)
|
|
{
|
|
super(recipient, body, attachments, sentTimeMillis, -1, expiresIn, distributionType, quote, contacts, previews, Collections.emptyList(), Collections.emptyList());
|
|
}
|
|
|
|
public OutgoingSecureMediaMessage(OutgoingMediaMessage base) {
|
|
super(base);
|
|
}
|
|
|
|
@Override
|
|
public boolean isSecure() {
|
|
return true;
|
|
}
|
|
}
|