edu.columbia.coms6901.pingtel.pingim
Class Subscriber
java.lang.Object
|
+--edu.columbia.coms6901.pingtel.pingim.Subscriber
- public class Subscriber
- extends java.lang.Object
Represents a PingIM client who has subscribed to this instance of PingIM.
Keeps track of expirations so that subscriber who has not renewed his/her
subscription is removed from the list of subscribers.
- Version:
- 1.0
- Author:
- Micah Sherr
Field Summary |
private java.util.Date |
dtNextNotifyTime
the date and time that we need to send the next notify message |
private java.lang.String |
sSIPAddress
the SIP address of the subscriber |
Constructor Summary |
Subscriber()
Creates a new instance of Subscriber |
Method Summary |
java.util.Date |
getNotifyTime()
Retrieves notify time |
java.lang.String |
getSIPAddress()
Retrieves sip address of this subscriber |
void |
setNotifyTime(java.util.Date dtNextNotifyTime)
Sets notify time, that is, time and date of next notification |
void |
setSIPAddress(java.lang.String sSIPAddress)
Sets SIP Address |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
sSIPAddress
private java.lang.String sSIPAddress
- the SIP address of the subscriber
dtNextNotifyTime
private java.util.Date dtNextNotifyTime
- the date and time that we need to send the next notify message
Subscriber
public Subscriber()
- Creates a new instance of Subscriber
setSIPAddress
public void setSIPAddress(java.lang.String sSIPAddress)
- Sets SIP Address
- Parameters:
sSIPAddress
- Sip address, in string format
getSIPAddress
public java.lang.String getSIPAddress()
- Retrieves sip address of this subscriber
- Returns:
- SIP address, in String form
setNotifyTime
public void setNotifyTime(java.util.Date dtNextNotifyTime)
- Sets notify time, that is, time and date of next notification
- Parameters:
dtNextNotifyTime
- Date of next notification
getNotifyTime
public java.util.Date getNotifyTime()
- Retrieves notify time
- Returns:
- Date of next notification