View Javadoc

1   /***
2    *     Ambient - A music player for the Android platform
3    Copyright (C) 2007 Martin Vysny
4    
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation, either version 3 of the License, or
8    (at your option) any later version.
9    
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU General Public License for more details.
14  
15   You should have received a copy of the GNU General Public License
16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  
19  package sk.baka.ambient.collection.ampache;
20  
21  import java.util.Date;
22  
23  /***
24   * Contains information about the Ampache server.
25   * 
26   * @author Martin Vysny
27   */
28  public final class AmpacheInfo {
29  	/***
30  	 * The Ampache security token.
31  	 */
32  	public String token;
33  	/***
34  	 * The Ampache XML API version.
35  	 */
36  	public String apiVersion;
37  	/***
38  	 * Last Update.
39  	 */
40  	public Date lastUpdate;
41  	/***
42  	 * Last Add.
43  	 */
44  	public Date lastAdd;
45  	/***
46  	 * Number of songs in the collection.
47  	 */
48  	public int songs;
49  	/***
50  	 * Number of artists in the collection.
51  	 */
52  	public int artists;
53  	/***
54  	 * Number of albums in the collection.
55  	 */
56  	public int albums;
57  
58  	@Override
59  	public String toString() {
60  		return "Ampache server token " + token + "; apiVersion " + apiVersion
61  				+ "; lastUpdated " + lastUpdate + "; lastAdd " + lastAdd
62  				+ "; songs " + songs + "; artists " + artists + "; albums "
63  				+ albums;
64  	}
65  }