2014-02-20 05:06:54 +00:00
|
|
|
package org.thoughtcrime.securesms.mms;
|
|
|
|
|
2018-04-27 00:03:54 +00:00
|
|
|
import android.support.annotation.NonNull;
|
2018-02-07 22:01:37 +00:00
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
|
2015-10-13 01:25:05 +00:00
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
2018-04-27 00:03:54 +00:00
|
|
|
import org.thoughtcrime.securesms.contactshare.Contact;
|
2019-01-15 08:41:05 +00:00
|
|
|
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
|
2017-08-01 15:56:00 +00:00
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
2014-02-20 05:06:54 +00:00
|
|
|
|
2018-05-22 09:13:10 +00:00
|
|
|
import java.util.Collections;
|
2015-10-13 01:25:05 +00:00
|
|
|
import java.util.List;
|
|
|
|
|
2014-02-20 05:06:54 +00:00
|
|
|
public class OutgoingSecureMediaMessage extends OutgoingMediaMessage {
|
|
|
|
|
2017-08-01 15:56:00 +00:00
|
|
|
public OutgoingSecureMediaMessage(Recipient recipient, String body,
|
2015-10-13 01:25:05 +00:00
|
|
|
List<Attachment> attachments,
|
|
|
|
long sentTimeMillis,
|
2016-08-16 03:23:56 +00:00
|
|
|
int distributionType,
|
2018-02-07 22:01:37 +00:00
|
|
|
long expiresIn,
|
2018-04-27 00:03:54 +00:00
|
|
|
@Nullable QuoteModel quote,
|
2019-01-15 08:41:05 +00:00
|
|
|
@NonNull List<Contact> contacts,
|
|
|
|
@NonNull List<LinkPreview> previews)
|
2014-02-20 05:06:54 +00:00
|
|
|
{
|
2019-01-15 08:41:05 +00:00
|
|
|
super(recipient, body, attachments, sentTimeMillis, -1, expiresIn, distributionType, quote, contacts, previews, Collections.emptyList(), Collections.emptyList());
|
2014-02-20 05:06:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public OutgoingSecureMediaMessage(OutgoingMediaMessage base) {
|
|
|
|
super(base);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isSecure() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|