public class SWADNotification extends Model
Constructor and Description |
---|
SWADNotification(long id,
long eventCode,
String eventType,
long eventTime,
String userSurname1,
String userSurname2,
String userFirstName,
String userPhoto,
String location,
String summary,
int status,
String content,
boolean seenLocal,
boolean seenRemote) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getContent()
Gets notification content
|
long |
getEventCode()
Gets event id
|
long |
getEventTime()
Gets notification timestamp
|
String |
getEventType()
Gets notification type
|
String |
getLocation()
Gets notification location
|
Object |
getProperty(int param) |
int |
getPropertyCount() |
void |
getPropertyInfo(int param,
Hashtable arg1,
PropertyInfo propertyInfo) |
int |
getStatus()
Gets notification status
|
String |
getSummary()
Gets notification summary
|
String |
getUserFirstName()
Gets sender first name
|
String |
getUserPhoto()
Gets full URL path of the sender photo
|
String |
getUserSurname1()
Gets sender first surname
|
String |
getUserSurname2()
Gets sender second surname
|
int |
hashCode() |
boolean |
isSeenLocal()
Gets notification seenLocal attribute
|
boolean |
isSeenRemote()
Gets notification seenRemote attribute
|
void |
setContent(String content)
Sets notification content
|
void |
setEventCode(long eventCode)
Sets event id
|
void |
setEventTime(int eventTime)
Sets notification timestamp
|
void |
setEventType(String eventType)
Sets notification type
|
void |
setLocation(String location)
Sets notification location
|
void |
setProperty(int param,
Object obj) |
void |
setSeenLocal(boolean seenLocal)
Sets notification seenLocal attribute
|
void |
setSeenRemote(boolean seenRemote)
Sets notification seenRemote attribute
|
void |
setStatus(int status)
Sets notification status
|
void |
setSummary(String summary)
Sets notification summary
|
void |
setUserFirstName(String userFirstName)
Sets sender first name
|
void |
setUserPhoto(String userPhoto)
Sets full URL path of the sender photo
|
void |
setUserSurname1(String userSurname1)
Sets sender first surname
|
void |
setUserSurname2(String userSurname2)
Sets sender second surname
|
String |
toString() |
public SWADNotification(long id, long eventCode, String eventType, long eventTime, String userSurname1, String userSurname2, String userFirstName, String userPhoto, String location, String summary, int status, String content, boolean seenLocal, boolean seenRemote)
id
- Notification id (unique)eventCode
- Event id (not unique)eventType
- Notification typeeventTime
- Notification timestampuserSurname1
- Sender first surnameuserSurname2
- Sender second surnameuserFirstName
- Sender first nameuserPhoto
- Full URL path of the sender photolocation
- Notification locationsummary
- Notification summarystatus
- Notification statusseenLocal
- Notification has been seen locallyseenRemote
- Notification has been seen in SWADpublic long getEventCode()
public void setEventCode(long eventCode)
eventCode
- Event idpublic String getEventType()
public void setEventType(String eventType)
eventType
- Notification typepublic long getEventTime()
public void setEventTime(int eventTime)
eventTime
- Notification timestamppublic String getUserSurname1()
public void setUserSurname1(String userSurname1)
userSurname1
- Sender first surnamepublic String getUserSurname2()
public void setUserSurname2(String userSurname2)
userSurname2
- Sender second surnamepublic String getUserFirstName()
public void setUserFirstName(String userFirstName)
userFirstName
- Sender first namepublic String getUserPhoto()
public void setUserPhoto(String userPhoto)
userPhoto
- Full URL path of the sender photopublic String getLocation()
public void setLocation(String location)
location
- Notification locationpublic String getSummary()
public void setSummary(String summary)
summary
- Notification summarypublic int getStatus()
public void setStatus(int status)
status
- Notification statuspublic String getContent()
public void setContent(String content)
content
- notification contentpublic boolean isSeenLocal()
public void setSeenLocal(boolean seenLocal)
seenLocal
- true if notification has been seen locally
false otherwisepublic boolean isSeenRemote()
public void setSeenRemote(boolean seenRemote)
seenRemote
- true if notification has been seen in SWAD
false otherwisepublic Object getProperty(int param)
public int getPropertyCount()
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo)
public void setProperty(int param, Object obj)