public class SWADNotification extends Model
Modifier and Type | Field and Description |
---|---|
private String |
content
Notification content
|
private long |
eventCode
Event id (not unique)
|
private long |
eventTime
Notification timestamp
|
private String |
eventType
Notification type
|
private String |
location
Notification location
|
private static org.ksoap2.serialization.PropertyInfo |
PI_content |
private static org.ksoap2.serialization.PropertyInfo |
PI_eventCode |
private static org.ksoap2.serialization.PropertyInfo |
PI_eventTime |
private static org.ksoap2.serialization.PropertyInfo |
PI_eventType |
private static org.ksoap2.serialization.PropertyInfo |
PI_id |
private static org.ksoap2.serialization.PropertyInfo |
PI_location |
private static org.ksoap2.serialization.PropertyInfo[] |
PI_PROP_ARRAY |
private static org.ksoap2.serialization.PropertyInfo |
PI_status |
private static org.ksoap2.serialization.PropertyInfo |
PI_summary |
private static org.ksoap2.serialization.PropertyInfo |
PI_userFirstName |
private static org.ksoap2.serialization.PropertyInfo |
PI_userPhoto |
private static org.ksoap2.serialization.PropertyInfo |
PI_userSurname1 |
private static org.ksoap2.serialization.PropertyInfo |
PI_userSurname2 |
private boolean |
seenLocal
Notification has been seen locally
|
private boolean |
seenRemote
Notification has been marked as seen in SWAD
|
private int |
status
Notification status
|
private String |
summary
Notification summary
|
private String |
userFirstName
Sender first name
|
private String |
userPhoto
Full URL path of the sender photo
|
private String |
userSurname1
Sender first surname
|
private String |
userSurname2
Sender second surname
|
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,
org.ksoap2.serialization.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() |
private long eventCode
private String eventType
private long eventTime
private String userSurname1
private String userSurname2
private String userFirstName
private String userPhoto
private String location
private String summary
private int status
private String content
private boolean seenLocal
private boolean seenRemote
private static final org.ksoap2.serialization.PropertyInfo PI_id
private static final org.ksoap2.serialization.PropertyInfo PI_eventCode
private static final org.ksoap2.serialization.PropertyInfo PI_eventType
private static final org.ksoap2.serialization.PropertyInfo PI_eventTime
private static final org.ksoap2.serialization.PropertyInfo PI_userSurname1
private static final org.ksoap2.serialization.PropertyInfo PI_userSurname2
private static final org.ksoap2.serialization.PropertyInfo PI_userFirstName
private static final org.ksoap2.serialization.PropertyInfo PI_userPhoto
private static final org.ksoap2.serialization.PropertyInfo PI_location
private static final org.ksoap2.serialization.PropertyInfo PI_summary
private static final org.ksoap2.serialization.PropertyInfo PI_status
private static final org.ksoap2.serialization.PropertyInfo PI_content
private static org.ksoap2.serialization.PropertyInfo[] PI_PROP_ARRAY
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, org.ksoap2.serialization.PropertyInfo propertyInfo)
public void setProperty(int param, Object obj)