net.anidb
Class AnimeNotification

java.lang.Object
  extended by net.anidb.Notification
      extended by net.anidb.AnimeNotification

public class AnimeNotification
extends Notification

An anime notification.

Version:
1.0, 14.01.2010
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)

Constructor Summary
AnimeNotification(NotificationListEntry entry, long relId, long type, int count, long date, java.lang.String relIdName, java.util.List<java.lang.Long> fileIdList)
          Creates an anime notification.
 
Method Summary
 int getCount()
          Returns the number of events pending for this subscription.
 long getDate()
          Returns the time of the event.
 java.util.List<java.lang.Long> getFileIdList()
          Returns the list of the affected file Ids.
 long getRelId()
          Returns the id of the related anime.
 java.lang.String getRelIdName()
          Returns the name of the related anime.
 long getType()
          Returns the type of the notification.
 
Methods inherited from class net.anidb.Notification
equals, getEntry, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimeNotification

public AnimeNotification(NotificationListEntry entry,
                         long relId,
                         long type,
                         int count,
                         long date,
                         java.lang.String relIdName,
                         java.util.List<java.lang.Long> fileIdList)
Creates an anime notification.

Parameters:
entry - The notification list entry.
relId - The id of the related anime.
type - The type of the notification.
count - The number of events pending for this subscription.
date - The time of the event.
relIdName - The name of the related anime.
fileIdList - The list of the affected file Ids.
Throws:
java.lang.IllegalArgumentException - If the notification list entry is null.
java.lang.IllegalArgumentException - If the name is null.
java.lang.IllegalArgumentException - If the list is null.
Method Detail

getRelId

public long getRelId()
Returns the id of the related anime.

Returns:
The id.

getType

public long getType()
Returns the type of the notification.

Returns:
The type.
See Also:
AnimeNotificationType

getCount

public int getCount()
Returns the number of events pending for this subscription.

Returns:
The number.

getDate

public long getDate()
Returns the time of the event.

Returns:
The time.

getRelIdName

public java.lang.String getRelIdName()
Returns the name of the related anime.

Returns:
The name.

getFileIdList

public java.util.List<java.lang.Long> getFileIdList()
Returns the list of the affected file Ids.

Returns:
The list.