public class Message
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Message() |
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content) |
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType) |
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String attachment,
java.lang.String attachmentContentType,
java.lang.String attachmentFileName) |
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType,
java.lang.String attachment,
java.lang.String attachmentContentType,
java.lang.String attachmentFileName) |
Modifier and Type | Method and Description |
---|---|
void |
addRecipient(java.lang.String recipient)
Add a new receiver of this message.
|
java.lang.String |
getAttachment() |
java.lang.String |
getAttachmentContentType() |
java.lang.String |
getAttachmentFileName() |
java.lang.String |
getContent() |
java.lang.String |
getContentType() |
java.lang.Integer |
getId() |
java.lang.String |
getRecipients() |
java.lang.String |
getSender() |
java.util.Date |
getSentDate() |
java.lang.String |
getSubject() |
boolean |
hasAttachment() |
void |
setAttachment(java.lang.String attachment) |
void |
setAttachmentContentType(java.lang.String attachmentContentType) |
void |
setAttachmentFileName(java.lang.String attachmentFileName) |
void |
setContent(java.lang.String content) |
void |
setContentType(java.lang.String contentType) |
void |
setId(java.lang.Integer id) |
void |
setRecipients(java.lang.String recipients)
Auto generated method comment
|
void |
setSender(java.lang.String sender) |
void |
setSentDate(java.util.Date sentDate) |
void |
setSubject(java.lang.String subject) |
public Message()
public Message(java.lang.Integer id, java.lang.String recipients, java.lang.String sender, java.lang.String subject, java.lang.String content)
public Message(java.lang.Integer id, java.lang.String recipients, java.lang.String sender, java.lang.String subject, java.lang.String content, java.lang.String contentType)
public Message(java.lang.Integer id, java.lang.String recipients, java.lang.String sender, java.lang.String subject, java.lang.String content, java.lang.String attachment, java.lang.String attachmentContentType, java.lang.String attachmentFileName)
id
- recipients
- sender
- subject
- content
- attachment
- attachmentContentType
- attachmentFileName
- public Message(java.lang.Integer id, java.lang.String recipients, java.lang.String sender, java.lang.String subject, java.lang.String content, java.lang.String contentType, java.lang.String attachment, java.lang.String attachmentContentType, java.lang.String attachmentFileName)
public void setId(java.lang.Integer id)
public java.lang.Integer getId()
public void setRecipients(java.lang.String recipients)
recipients
- public java.lang.String getRecipients()
public void addRecipient(java.lang.String recipient)
recipient
- a new address to assignpublic void setSender(java.lang.String sender)
public java.lang.String getSender()
public void setSubject(java.lang.String subject)
public java.lang.String getSubject()
public void setSentDate(java.util.Date sentDate)
public java.util.Date getSentDate()
public void setContent(java.lang.String content)
public java.lang.String getContent()
public void setContentType(java.lang.String contentType)
public java.lang.String getContentType()
public java.lang.String getAttachment()
public void setAttachment(java.lang.String attachment)
public java.lang.String getAttachmentContentType()
public void setAttachmentContentType(java.lang.String attachmentContentType)
public java.lang.String getAttachmentFileName()
public void setAttachmentFileName(java.lang.String attachmentFileName)
public boolean hasAttachment()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.