session-android/src/org/thoughtcrime/securesms/mms/OutgoingSecureMediaMessage.java

37 lines
1.3 KiB
Java
Raw Normal View History

package org.thoughtcrime.securesms.mms;
import android.support.annotation.NonNull;
2018-02-07 22:01:37 +00:00
import android.support.annotation.Nullable;
import org.thoughtcrime.securesms.attachments.Attachment;
import org.thoughtcrime.securesms.contactshare.Contact;
2019-01-15 08:41:05 +00:00
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
import org.thoughtcrime.securesms.recipients.Recipient;
2018-05-22 09:13:10 +00:00
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,
2018-02-07 22:01:37 +00:00
long expiresIn,
@Nullable QuoteModel quote,
2019-01-15 08:41:05 +00:00
@NonNull List<Contact> contacts,
@NonNull List<LinkPreview> previews)
{
2019-01-15 08:41:05 +00:00
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;
}
}