net.anidb
Class MessageNotification

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

public class MessageNotification
extends Notification

A message notification.

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

Constructor Summary
MessageNotification(NotificationListEntry entry, long messageId, long fromUserId, java.lang.String fromUserName, long date, long type, java.lang.String title, java.lang.String body)
          Creates a message notification.
 
Method Summary
 java.lang.String getBody()
          Returns the body.
 long getDate()
          Returns the time of the event.
 long getFromUserId()
          Returns the sender user Id.
 java.lang.String getFromUserName()
          Returns the sender user name.
 long getMessageId()
          Returns the message Id.
 java.lang.String getTitle()
          Returns the title.
 long getType()
          Returns the type of the message.
 
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

MessageNotification

public MessageNotification(NotificationListEntry entry,
                           long messageId,
                           long fromUserId,
                           java.lang.String fromUserName,
                           long date,
                           long type,
                           java.lang.String title,
                           java.lang.String body)
Creates a message notification.

Parameters:
entry - The notification list entry.
messageId - The message Id.
fromUserId - The sender user Id.
fromUserName - The sender user name.
date - The time of the event.
type - The type of the message.
title - The title.
body - The body.
Throws:
java.lang.IllegalArgumentException - If the notification list entry is null.
java.lang.IllegalArgumentException - Of the sender user name is null.
java.lang.IllegalArgumentException - If the title is null.
java.lang.IllegalArgumentException - If the body is null.
Method Detail

getMessageId

public long getMessageId()
Returns the message Id.

Returns:
The message Id.

getFromUserId

public long getFromUserId()
Returns the sender user Id.

Returns:
The sender user Id.

getFromUserName

public java.lang.String getFromUserName()
Returns the sender user name.

Returns:
The sender user name.

getDate

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

Returns:
The time.

getType

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

Returns:
The type.

getTitle

public java.lang.String getTitle()
Returns the title.

Returns:
The title.

getBody

public java.lang.String getBody()
Returns the body.

Returns:
The body.