|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anidb.udp.UdpNotificationFactory
public class UdpNotificationFactory
A factory for notifications.
| Method Summary | |
|---|---|
void |
acknowledgeNotification(NotificationListEntry listEntry)
Acknowledges the notification for the given list entry. |
void |
acknowledgeNotification(java.lang.String type,
long id)
Acknowledges the notification for the given type and Id. |
static UdpNotificationFactory |
getInstance(UdpConnection conn)
Returns an instance of this class. |
Notification |
getNotification(NotificationListEntry listEntry)
Returns the notification for the given list entry. |
Notification |
getNotification(java.lang.String type,
long id)
Returns the notification for the given type and Id. |
java.util.List<NotificationListEntry> |
getNotifyList()
Returns a list of entries of all pending (not acknowledged) new private message and new file notifications. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UdpNotificationFactory getInstance(UdpConnection conn)
conn - The connection.
java.lang.IllegalArgumentException - If the connection is null.
public java.util.List<NotificationListEntry> getNotifyList()
throws UdpConnectionException,
AniDbException
Returns a list of entries of all pending (not acknowledged) new private message and new file notifications.
Buddy events cannot be acknowledged.
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.
public Notification getNotification(NotificationListEntry listEntry)
throws UdpConnectionException,
AniDbException
listEntry - The list entry.
java.lang.IllegalArgumentException - If the list entry is null.
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_MESSAGE,
UdpReturnCodes.NO_SUCH_NOTIFY
public Notification getNotification(java.lang.String type,
long id)
throws UdpConnectionException,
AniDbException
type - The type.id - The Id.
java.lang.IllegalArgumentException - If the type is null or the
given type isn't supported.
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_MESSAGE,
UdpReturnCodes.NO_SUCH_NOTIFY
public void acknowledgeNotification(NotificationListEntry listEntry)
throws UdpConnectionException,
AniDbException
listEntry - The list entry.
java.lang.IllegalArgumentException - If the list entry is null.
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_ENTRY_M,
UdpReturnCodes.NO_SUCH_ENTRY_N
public void acknowledgeNotification(java.lang.String type,
long id)
throws UdpConnectionException,
AniDbException
type - The type.id - The Id.
java.lang.IllegalArgumentException - If the type is null or the
given type isn't supported.
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_ENTRY_M,
UdpReturnCodes.NO_SUCH_ENTRY_N
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||