예제 #1
0
 /**
  * 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);
   }
 }
예제 #2
0
  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;
  }
예제 #3
0
 public void setSingleBody(MessageBodyValue body) {
   mBodies.clear();
   body.mMessageId = mId;
   add(body);
 }
예제 #4
0
 public void add(MessageBodyValue body) {
   body.mMessageId = mId;
   mBodies.add(body);
 }