sk.baka.ambient.collection.ampache
Class AmpacheInfo

java.lang.Object
  extended by sk.baka.ambient.collection.ampache.AmpacheInfo

@Immutable
@ThreadSafe
public final class AmpacheInfo
extends java.lang.Object

Contains information about the Ampache server.

Author:
Martin Vysny

Nested Class Summary
static class AmpacheInfo.Builder
          Builds instances of AmpacheInfo class.
 
Field Summary
 int albums
          Number of albums in the collection.
 java.lang.String apiVersion
          The Ampache XML API version.
 int artists
          Number of artists in the collection.
 java.util.Date lastAdd
          Last Add.
 java.util.Date lastUpdate
          Last Update.
 int songs
          Number of songs in the collection.
 java.lang.String token
          The Ampache security token.
 
Constructor Summary
AmpacheInfo(java.lang.String token, java.lang.String apiVersion, java.util.Date lastUpdate, java.util.Date lastAdd, int songs, int artists, int albums)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

token

public final java.lang.String token
The Ampache security token.


apiVersion

public final java.lang.String apiVersion
The Ampache XML API version.


lastUpdate

public final java.util.Date lastUpdate
Last Update.


lastAdd

public final java.util.Date lastAdd
Last Add.


songs

public final int songs
Number of songs in the collection.


artists

public final int artists
Number of artists in the collection.


albums

public final int albums
Number of albums in the collection.

Constructor Detail

AmpacheInfo

public AmpacheInfo(java.lang.String token,
                   java.lang.String apiVersion,
                   java.util.Date lastUpdate,
                   java.util.Date lastAdd,
                   int songs,
                   int artists,
                   int albums)
Parameters:
token - The Ampache security token.
apiVersion - The Ampache XML API version.
lastUpdate - Last Update.
lastAdd - Last Add.
songs - Number of songs in the collection.
artists - Number of artists in the collection.
albums - Number of albums in the collection.
Method Detail

toString

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


Copyright © 2007-2009. All Rights Reserved.