public interface IClient
This documentation describes the current draft of the PC2 API, which is subject to change.
Modifier and Type | Interface and Description |
---|---|
static class |
IClient.ClientType
This enumerates the Client types defined in the system (that is, the types of Clients visible through the PC2 API).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Check whether this client is the same as some other client.
|
int |
getAccountNumber()
Get the client account number for this client.
|
String |
getDisplayName()
Get the client's "display name".
|
String |
getLoginName()
Get the client's login name.
|
int |
getSiteNumber()
Get the site number for this client.
|
IClient.ClientType |
getType()
Get the client Type.
|
int |
hashCode()
Get the hashcode associated with this client.
|
boolean |
isDisplayableOnScoreboard()
Return a boolean indicating whether this client should be displayed on the scoreboard or not.
|
String getLoginName()
IClient.ClientType getType()
IClient.ClientType
enum elementString getDisplayName()
int getSiteNumber()
int getAccountNumber()
boolean equals(Object obj)
Determination of whether two clients are equal is based on whether they refer to the
same client account as originally created in PC2 by the Contest Administrator.
Note in particular that subsequent changes to a client account
made by the Contest Administrator (for example,
changes to the account display name, password, etc.) do not affect the result of the
equals()
method; if this client refers to the same client as the one indicated by the
specified parameter, this method will return true regardless of whether the internal contents of the two
client objects is identical or not.
int hashCode()
boolean isDisplayableOnScoreboard()