public class MessageModel extends com.extjs.gxt.ui.client.data.BaseModelData implements Serializable
Modifier and Type | Field and Description |
---|---|
protected InfoContactModel |
contact |
protected FileModel |
fileModel |
Constructor and Description |
---|
MessageModel() |
MessageModel(String id,
String subject,
InfoContactModel sender,
Date date,
int numAttachs,
boolean isRead,
String messageType)
BASIC CONSTRUCTOR
|
MessageModel(String id,
String subject,
InfoContactModel sender,
Date date,
List<String> attachsNames,
String messageType,
boolean isRead)
USED TO VIEW MESSAGE IN GRID
|
MessageModel(String id,
String subject,
InfoContactModel sender,
Date date,
String text,
List<FileModel> attachs,
List<String> listContactsToString,
String messageType,
boolean isRead)
USED IN OPEN MESSAGE
|
Modifier and Type | Method and Description |
---|---|
String |
getAttachmentsNamesView()
used in grid
|
Date |
getDate() |
InfoContactModel |
getFromContact() |
String |
getFromLogin() |
String |
getFullName() |
String |
getId() |
String |
getIsRead() |
List<FileModel> |
getListAttachments() |
List<InfoContactModel> |
getListContactsTo() |
List<String> |
getListContactsToString() |
String |
getMessageType() |
int |
getNumAttchments() |
String |
getSubject() |
String |
getTextMessage() |
void |
setId(String id) |
void |
setListContactsTo(List<InfoContactModel> listContactsTo) |
String |
toString() |
protected InfoContactModel contact
protected FileModel fileModel
public MessageModel()
public MessageModel(String id, String subject, InfoContactModel sender, Date date, String text, List<FileModel> attachs, List<String> listContactsToString, String messageType, boolean isRead)
id
- subject
- sender
- date
- text
- attachs
- listContactsToString
- messageType
- isRead
- public MessageModel(String id, String subject, InfoContactModel sender, Date date, int numAttachs, boolean isRead, String messageType)
public String getFullName()
public String getIsRead()
public void setListContactsTo(List<InfoContactModel> listContactsTo)
public void setId(String id)
public String getId()
public String getSubject()
public Date getDate()
public int getNumAttchments()
public InfoContactModel getFromContact()
public String getFromLogin()
public String getTextMessage()
public String getAttachmentsNamesView()
public List<InfoContactModel> getListContactsTo()
public String getMessageType()
Copyright © 2014. All Rights Reserved.