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