blueme.messenger.common
Class UserList

java.lang.Object
  extended by java.util.Hashtable
      extended by blueme.messenger.common.SerUnser
          extended by blueme.messenger.common.UserList
All Implemented Interfaces:
iConstants, iUserList

public class UserList
extends SerUnser
implements iUserList, iConstants

Different userdata information about a different user..


Field Summary
 
Fields inherited from interface blueme.messenger.common.iConstants
ADMIN_UID, APP_TITLE, BLUETOOTH_INDEX, BLUETOOTH_LENGTH, BLUETOOTH_POSTFIX, BLUETOOTH_PREFIX, COM_OBJECTS, DISCOVERY_SLEEP, GPRS_INDEX, MAX_REDIRECTS, MSG_MAX_COUNT, MSG_MAX_LENGTH, NICK_MAX_LENGTH, PID_LENGTH, SMS_PUSH_PORT, UID_LENGTH
 
Constructor Summary
UserList()
          Creates a new instance of UserList
 
Method Summary
 java.lang.String getBluetoothAddress()
          Get Bluetooth address
 java.lang.String getList()
          Get what list this user is on.
 java.lang.String getNick()
          Get nick
 java.lang.String getUid()
          Get UID
 boolean getUnread()
           
 int getUpdateTime()
          Get last use time
 int getUserListVersion()
          UserList version
 void setBluetoothAddress(java.lang.String bluetoothAddress)
          Set Bluetooth address
 void setList(java.lang.String listName)
          Define what list this user is on.
 void setNick(java.lang.String nick)
          Set nick
 void setUid(java.lang.String uid)
          Set UID
 void setUnread(boolean unread)
           
 void setUpdateTime()
          Update last use time to now
 void setUpdateTime(int updateTime)
          Update last use time to defined argument
 
Methods inherited from class blueme.messenger.common.SerUnser
get, put, serialize, unserialize
 
Methods inherited from class java.util.Hashtable
clear, contains, containsKey, elements, isEmpty, keys, rehash, remove, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface blueme.messenger.common.iUserList
serialize, unserialize
 

Constructor Detail

UserList

public UserList()
Creates a new instance of UserList

Method Detail

getBluetoothAddress

public java.lang.String getBluetoothAddress()
                                     throws java.lang.NullPointerException
Description copied from interface: iUserList
Get Bluetooth address

Specified by:
getBluetoothAddress in interface iUserList
Throws:
java.lang.NullPointerException

getUid

public java.lang.String getUid()
                        throws java.lang.NullPointerException
Description copied from interface: iUserList
Get UID

Specified by:
getUid in interface iUserList
Throws:
java.lang.NullPointerException

getNick

public java.lang.String getNick()
                         throws java.lang.NullPointerException
Description copied from interface: iUserList
Get nick

Specified by:
getNick in interface iUserList
Throws:
java.lang.NullPointerException

getUnread

public boolean getUnread()

getUpdateTime

public int getUpdateTime()
                  throws java.lang.NullPointerException
Description copied from interface: iUserList
Get last use time

Specified by:
getUpdateTime in interface iUserList
Throws:
java.lang.NullPointerException

getUserListVersion

public int getUserListVersion()
Description copied from interface: iUserList
UserList version

Specified by:
getUserListVersion in interface iUserList

setBluetoothAddress

public void setBluetoothAddress(java.lang.String bluetoothAddress)
                         throws java.lang.StringIndexOutOfBoundsException
Description copied from interface: iUserList
Set Bluetooth address

Specified by:
setBluetoothAddress in interface iUserList
Throws:
java.lang.StringIndexOutOfBoundsException

setUid

public void setUid(java.lang.String uid)
            throws java.lang.StringIndexOutOfBoundsException
Description copied from interface: iUserList
Set UID

Specified by:
setUid in interface iUserList
Throws:
java.lang.StringIndexOutOfBoundsException

setNick

public void setNick(java.lang.String nick)
Description copied from interface: iUserList
Set nick

Specified by:
setNick in interface iUserList

setUnread

public void setUnread(boolean unread)

setUpdateTime

public void setUpdateTime()
Description copied from interface: iUserList
Update last use time to now

Specified by:
setUpdateTime in interface iUserList

setUpdateTime

public void setUpdateTime(int updateTime)
Description copied from interface: iUserList
Update last use time to defined argument

Specified by:
setUpdateTime in interface iUserList

setList

public void setList(java.lang.String listName)
Description copied from interface: iUserList
Define what list this user is on.

Specified by:
setList in interface iUserList

getList

public java.lang.String getList()
Description copied from interface: iUserList
Get what list this user is on.

Specified by:
getList in interface iUserList