/** * Load the message body for this message * * @param context */ public void restoreMessageBodies(Context context) { mBodies.clear(); MessageBodyValue body = MessageBodyValue.restoreBodyWithMessageId(context, mId); if (body != null) { this.add(body); } }
public static MessageValue retoreMessageWithIdAllParts(Context context, long id) { MessageValue message = restoreMessageWithIdIncludingContacts(context, id); MessageBodyValue body = MessageBodyValue.restoreBodyWithMessageId(context, id); if (body != null) { message.mBodies.add(body); } // @TODO ATTACHMENTS return message; }
public void setSingleBody(MessageBodyValue body) { mBodies.clear(); body.mMessageId = mId; add(body); }
public void add(MessageBodyValue body) { body.mMessageId = mId; mBodies.add(body); }