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