siuying.gm.structure
Class GMSendMailBody

java.lang.Object
  extended by siuying.gm.structure.GMSendMailBody

public class GMSendMailBody
extends java.lang.Object

Message body of an outgoing mail

Version:
0.2
Author:
siuying

Constructor Summary
GMSendMailBody()
           
 
Method Summary
 void addAttachment(java.lang.String file)
          Add an attachment
 void addAttachmentLink(java.lang.String threadId, java.lang.String entryId, java.lang.String attachmentId)
          Add an attachment from a file existing in gmail
 void addBcc(java.lang.String address)
          Add a bcc receiver
 void addCc(java.lang.String address)
          Add a cc receiver
 void addTo(java.lang.String address)
          Add a to receiver
 boolean equals(GMSendMailBody object)
           
 java.lang.String[] getAttachment()
          Get all attachments in a String array
 java.lang.String[] getAttachmentLink()
           
 java.lang.String[] getBcc()
           
 java.lang.String getBccAsString()
           
 java.lang.String[] getCc()
           
 java.lang.String getCcAsString()
           
 java.lang.String getDraft()
           
 java.lang.String getMsgbody()
           
 java.lang.String getRm()
           
 java.lang.String getSubject()
           
 java.lang.String getTh()
           
 java.lang.String[] getTo()
           
 java.lang.String getToAsString()
           
 void setDraft(java.lang.String draft)
           
 void setMsgbody(java.lang.String msgbody)
           
 void setRm(java.lang.String rm)
           
 void setSubject(java.lang.String subject)
           
 void setTh(java.lang.String th)
           
 java.lang.String toString()
          Textual representation of this mail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GMSendMailBody

public GMSendMailBody()
Method Detail

equals

public boolean equals(GMSendMailBody object)

toString

public java.lang.String toString()
Textual representation of this mail

Overrides:
toString in class java.lang.Object
Returns:
simplify text represetation of this outgoing mail
To do:
make it a MIME mail message

addTo

public void addTo(java.lang.String address)
Add a to receiver

Parameters:
address -

addCc

public void addCc(java.lang.String address)
Add a cc receiver

Parameters:
address -

addBcc

public void addBcc(java.lang.String address)
Add a bcc receiver

Parameters:
address -

addAttachment

public void addAttachment(java.lang.String file)
Add an attachment

Parameters:
file - full local path to the attachment file

addAttachmentLink

public void addAttachmentLink(java.lang.String threadId,
                              java.lang.String entryId,
                              java.lang.String attachmentId)
Add an attachment from a file existing in gmail

Parameters:
threadId - Thread ID, ID of the thread
entryId - Entry ID, ID of the conversionEntry
attachmentId - Attachment ID of the message, e.g. 0.1, 9.2 ..etc

getAttachment

public java.lang.String[] getAttachment()
Get all attachments in a String array

Returns:
String[]

getAttachmentLink

public java.lang.String[] getAttachmentLink()

getTo

public java.lang.String[] getTo()

getToAsString

public java.lang.String getToAsString()

getCc

public java.lang.String[] getCc()

getCcAsString

public java.lang.String getCcAsString()

getBcc

public java.lang.String[] getBcc()

getBccAsString

public java.lang.String getBccAsString()

getDraft

public java.lang.String getDraft()

getMsgbody

public java.lang.String getMsgbody()

getRm

public java.lang.String getRm()

getSubject

public java.lang.String getSubject()

getTh

public java.lang.String getTh()

setDraft

public void setDraft(java.lang.String draft)

setMsgbody

public void setMsgbody(java.lang.String msgbody)

setRm

public void setRm(java.lang.String rm)

setSubject

public void setSubject(java.lang.String subject)

setTh

public void setTh(java.lang.String th)