|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.servers.ServerEvent
public class ServerEvent
Represents a general server event.
| Field Summary | |
|---|---|
static int |
AUTO_BAN
Code for a computer banning type. |
static int |
AUTO_UNBAN
Code for a computer unbanning type. |
static int |
CALLBACK
Code for a callback type. |
static int |
CONNECT
Code for a connection type. |
static int |
MESSAGE
Code for a message type. |
static int |
USER_BAN
Code for a user banning type. |
static int |
USER_UNBAN
Code for a user unbanning type. |
| Constructor Summary | |
|---|---|
ServerEvent(java.lang.String url,
int type)
|
|
| Method Summary | |
|---|---|
long |
getTimestamp()
Returns the UNIX timestamp of occurrence for this event. |
int |
getType()
Returns the type code for this event. |
java.lang.String |
getTypeString()
Returns the type in a human-readable format. |
java.lang.String |
getUrl()
Returns the URL for the server being referenced by this event. |
java.lang.String |
toString()
Returns a human-readable description of this event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CONNECT
Code for a connection type.
public static final int AUTO_BAN
Code for a computer banning type.
public static final int USER_BAN
Code for a user banning type.
public static final int AUTO_UNBAN
Code for a computer unbanning type.
public static final int USER_UNBAN
Code for a user unbanning type.
public static final int MESSAGE
Code for a message type.
public static final int CALLBACK
Code for a callback type.
| Constructor Detail |
|---|
public ServerEvent(java.lang.String url,
int type)
url - type - | Method Detail |
|---|
public long getTimestamp()
Returns the UNIX timestamp of occurrence for this event.
public java.lang.String getUrl()
Returns the URL for the server being referenced by this event.
public int getType()
Returns the type code for this event.
public java.lang.String getTypeString()
Returns the type in a human-readable format.
public java.lang.String toString()
Returns a human-readable description of this event.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||