|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--zyneo.sms.Notification
Represents a Sms-notification. Notifications are delivered from the SMSC if requested, a notfication can indicate five different things:
Field Summary | |
static int |
DELIVERED
Type: DELIVERED message is delivered to MT |
static int |
ERASED
Type: ERASED message is erased from SMSC |
static int |
ERROR
Type: ERROR message failed to be delivered to SMSC |
protected java.util.Date |
m_discharge_time
Event time from SMSC |
protected java.lang.String |
m_id
Message id |
protected java.util.Date |
m_provider_time
Time set by provider |
protected java.util.Date |
m_smsc_time
Smsc time when message which this notification belongs to arrived at SMSC |
protected int |
m_type
Notification type |
static int |
SAVED
Type: SAVED message is saved on SMSC for deliverance later |
static int |
SENT_TO_SMSC
Type: SENT_TO_SMSC message is succesfully sent to SMSC |
Constructor Summary | |
Notification()
Constructor Initializes an empty notification object. |
|
Notification(int type,
java.util.Date smsc,
java.util.Date discharge,
java.util.Date provider,
java.lang.String id)
Constructor Creates and initializes all member variables to supplied values. |
Method Summary | |
java.util.Date |
getDate()
Retrives notification time and date. |
java.util.Date |
getDischargeDate()
Retrives discharge/event time as reported by SMSC |
java.lang.String |
getId()
Retrives the message id. |
java.util.Date |
getProviderDate()
Retrives time as reported by provider |
java.util.Date |
getSMSCDate()
Retrives time as reported by SMSC |
int |
getType()
Retrives notification type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SENT_TO_SMSC
public static final int DELIVERED
public static final int ERASED
public static final int SAVED
public static final int ERROR
protected java.util.Date m_smsc_time
protected java.util.Date m_discharge_time
protected java.util.Date m_provider_time
protected int m_type
protected java.lang.String m_id
Constructor Detail |
public Notification()
public Notification(int type, java.util.Date smsc, java.util.Date discharge, java.util.Date provider, java.lang.String id)
type
- notification typesmsc
- date when message arrived at SMSCdischarge
- time when event occured as reported by SMSC.provider
- date from provider must not be null.id
- must not be null.Method Detail |
public int getType()
public java.util.Date getDate()
public java.util.Date getSMSCDate()
null
if not set.public java.util.Date getDischargeDate()
null
if not set.public java.util.Date getProviderDate()
public java.lang.String getId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |