net.sf.juoserver.model
Class Account

java.lang.Object
  extended by net.sf.juoserver.model.Account

public class Account
extends Object


Constructor Summary
Account(int accountId, String username, String password)
           
 
Method Summary
 void addSerialId(int serialId)
           
static Account createAccount(int accountId, String username, String password, int... serialIds)
           
 boolean equals(Object obj)
           
 int getAccountId()
           
 int getCharacterSerialIdByPosition(int position)
          Retrieves an account's characters serial IDs, given its position in the login screen.
 String getPassword()
           
 String getUsername()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Account

public Account(int accountId,
               String username,
               String password)
Method Detail

createAccount

public static Account createAccount(int accountId,
                                    String username,
                                    String password,
                                    int... serialIds)

addSerialId

public void addSerialId(int serialId)

getAccountId

public int getAccountId()

getUsername

public String getUsername()

getPassword

public String getPassword()

getCharacterSerialIdByPosition

public int getCharacterSerialIdByPosition(int position)
Retrieves an account's characters serial IDs, given its position in the login screen.

Parameters:
position - position of the account's character within the login screen
Returns:
the account's characters serial IDs having the specified position in the login screen.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010-2012. All Rights Reserved.