sharpster.common
Class SharedFilesResponse

java.lang.Object
  |
  +--sharpster.common.Response
        |
        +--sharpster.common.SharedFilesResponse
All Implemented Interfaces:
java.io.Serializable

public class SharedFilesResponse
extends Response

A response containing information about a file share.

See Also:
Serialized Form

Constructor Summary
SharedFilesResponse()
           
 
Method Summary
 void addSharedToUsers(java.lang.String user)
           
 int getAction()
          Returns an integer representing the command which has caused the response (share, unshare etc).
 sharpster.common.FileCollection getFiles()
          Returns the FileCollection of the response.
 java.lang.String[] getSharedToUsers()
           
 int getType()
          Returns the type of this response.
 void setAction(int action)
          Sets the command which has caused the response (share, unshare etc).
 void setFiles(sharpster.common.FileCollection files)
          Sets the file collection.
 java.lang.String toString()
           
 
Methods inherited from class sharpster.common.Response
getOrigin, getUser, isError, setError, setOrigin, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharedFilesResponse

public SharedFilesResponse()
Method Detail

getType

public int getType()
Returns the type of this response.

Specified by:
getType in class Response

getFiles

public sharpster.common.FileCollection getFiles()
Returns the FileCollection of the response.

Returns:
FileCollection.

setFiles

public void setFiles(sharpster.common.FileCollection files)
Sets the file collection.

Parameters:
files - The files to be set.

getAction

public int getAction()
Returns an integer representing the command which has caused the response (share, unshare etc).

Returns:
An action integer

setAction

public void setAction(int action)
Sets the command which has caused the response (share, unshare etc).

Parameters:
action - An action integer

addSharedToUsers

public void addSharedToUsers(java.lang.String user)

getSharedToUsers

public java.lang.String[] getSharedToUsers()

toString

public java.lang.String toString()
Overrides:
toString in class Response