bass.dto
Class DTO_FList

java.lang.Object
  extended by bass.dto.DTO_FList

public class DTO_FList
extends java.lang.Object

DTO object for friend lists

Version:
0.1
Author:
Thomas Klein

Field Summary
private  int band_id
           
private static java.lang.String elementSeperator
           
protected  int[] friends
           
 
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
 
Method Summary
 int getBand_id()
           
 int[] getFriends()
           
 java.lang.String[] toMultipleServerStrings(int splitSize)
           
 java.lang.String toServerString()
          generates the string for client/server communication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

band_id

private int band_id

friends

protected int[] friends

elementSeperator

private static java.lang.String elementSeperator
Constructor Detail

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 is
friends - 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 ;)
Method Detail

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()