org.tranche.servers
Class ServerCallbackEvent

java.lang.Object
  extended by org.tranche.servers.ServerEvent
      extended by org.tranche.servers.ServerCallbackEvent

public class ServerCallbackEvent
extends ServerEvent

Author:
James "Augie" Hill - augman85@gmail.com

Field Summary
static int TYPE_CREATED
          Code for a createion event.
static int TYPE_FAILED
          Code for a failure event.
static int TYPE_FULFILLED
          Code for a completed event.
 
Fields inherited from class org.tranche.servers.ServerEvent
AUTO_BAN, AUTO_UNBAN, CALLBACK, CONNECT, MESSAGE, USER_BAN, USER_UNBAN
 
Constructor Summary
ServerCallbackEvent(java.lang.String url, long id, int type)
           
ServerCallbackEvent(java.lang.String url, long id, int type, java.lang.String name, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the callback this represents.
 long getId()
          Returns the ID for the callback this event represents.
 java.lang.String getName()
          Returns the name of the callback this represents.
 int getType()
          Returns the type code for this event.
 java.lang.String getTypeString()
          Returns the human-readable type.
 java.lang.String toString()
          A human-readable description of this event.
 
Methods inherited from class org.tranche.servers.ServerEvent
getTimestamp, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_CREATED

public static final int TYPE_CREATED

Code for a createion event.

See Also:
Constant Field Values

TYPE_FULFILLED

public static final int TYPE_FULFILLED

Code for a completed event.

See Also:
Constant Field Values

TYPE_FAILED

public static final int TYPE_FAILED

Code for a failure event.

See Also:
Constant Field Values
Constructor Detail

ServerCallbackEvent

public ServerCallbackEvent(java.lang.String url,
                           long id,
                           int type)
Parameters:
url -
id -
type -

ServerCallbackEvent

public ServerCallbackEvent(java.lang.String url,
                           long id,
                           int type,
                           java.lang.String name,
                           java.lang.String description)
Parameters:
url -
id -
type -
name -
description -
Method Detail

getId

public long getId()

Returns the ID for the callback this event represents.

Returns:

getType

public int getType()

Returns the type code for this event.

Overrides:
getType in class ServerEvent
Returns:

getName

public java.lang.String getName()

Returns the name of the callback this represents.

Returns:

getDescription

public java.lang.String getDescription()

Returns the description of the callback this represents.

Returns:

getTypeString

public java.lang.String getTypeString()

Returns the human-readable type.

Overrides:
getTypeString in class ServerEvent
Returns:

toString

public java.lang.String toString()

A human-readable description of this event.

Overrides:
toString in class ServerEvent
Returns:


This code is free for use both commercially and non-commercially as stated in the project's license