bass.dto
Class DTO_FList
java.lang.Object
bass.dto.DTO_FList
public class DTO_FList
- extends java.lang.Object
DTO object for friend lists
- Version:
- 0.1
- Author:
- Thomas Klein
|
Constructor Summary |
DTO_FList(int id,
int[] friends)
basic contructor, creates a new DTO |
DTO_FList(java.lang.String serverString)
Generates a new DTO from a ServerString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
band_id
private int band_id
friends
protected int[] friends
elementSeperator
private static java.lang.String elementSeperator
DTO_FList
public DTO_FList(int id,
int[] friends)
- basic contructor, creates a new DTO
- Parameters:
id - the id of the band/myspace member who's friendlist this isfriends - int array filled with the ids of the users friends
DTO_FList
public DTO_FList(java.lang.String serverString)
- Generates a new DTO from a ServerString
- Parameters:
serverString - the String to make a dto of, make sure this was generated by this
class' method toServerSring ;)
toServerString
public java.lang.String toServerString()
- generates the string for client/server communication
- Returns:
- the serverstring for the current DTO
toMultipleServerStrings
public java.lang.String[] toMultipleServerStrings(int splitSize)
getBand_id
public int getBand_id()
getFriends
public int[] getFriends()