/*public OutgoingMediaMessage(Recipients recipients, PduBody body,
         *                          String message, int distributionType)
         * {
         *  this.recipients = recipients;
         *  this.body = body;
         *  this.distributionType = distributionType;
         *
         *  if (!TextUtils.isEmpty(message))
         *  {
         *      this.body.addPart(new TextSlide(context, message).getPart());
         *  }
         * }
         *
         * public OutgoingMediaMessage(Context context, Recipients recipients, SlideDeck slideDeck,
         *                          String message, int distributionType)
         * {
         *  this(context, recipients, slideDeck.toPduBody(), message, distributionType);
         * }
         *
         * public OutgoingMediaMessage(Context context, MasterSecretUnion masterSecret,
         *                          Recipients recipients, List<TextSecureAttachment> attachments,
         *                          String message)
         * {
         *  this(context, recipients, pduBodyFor(masterSecret, attachments), message,
         *       ThreadDatabase.DistributionTypes.CONVERSATION);
         * }*/

        public OutgoingMediaMessage(OutgoingMediaMessage that)
        {
            this.recipients = that.getRecipients();
            //this.body = that.body;
            this.distributionType = that.distributionType;
        }
Esempio n. 2
0
        /*public OutgoingMediaMessage(Recipients recipients, PduBody body,
                                    String message, int distributionType)
        {
            this.recipients = recipients;
            this.body = body;
            this.distributionType = distributionType;

            if (!TextUtils.isEmpty(message))
            {
                this.body.addPart(new TextSlide(context, message).getPart());
            }
        }

        public OutgoingMediaMessage(Context context, Recipients recipients, SlideDeck slideDeck,
                                    String message, int distributionType)
        {
            this(context, recipients, slideDeck.toPduBody(), message, distributionType);
        }

        public OutgoingMediaMessage(Context context, MasterSecretUnion masterSecret,
                                    Recipients recipients, List<TextSecureAttachment> attachments,
                                    String message)
        {
            this(context, recipients, pduBodyFor(masterSecret, attachments), message,
                 ThreadDatabase.DistributionTypes.CONVERSATION);
        }*/

        public OutgoingMediaMessage(OutgoingMediaMessage that)
        {
            this.recipients = that.getRecipients();
            //this.body = that.body;
            this.distributionType = that.distributionType;
        }