Subversion Repositories eFlore/Applications.coel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1906 mathias 1
package org.tela_botanica.client.modeles;
2
 
3
/**
4
 * Une mini classe pour stocker facilement le retour d'un appel aux services
5
 * annuaire:auth (connexion, deconnexion, identite)
6
 *
7
 * @author mathias
8
 */
9
public class AuthInfo {
10
 
11
	public String token;
12
	public boolean session;
13
	public String tokenId;
14
	public int duration;
15
	public Integer lastModif; // Integer pour pouvoir mettre null dedans
16
	public String error;
17
 
18
	public AuthInfo(String token, boolean session, String tokenId, int duration, Integer lastModif, String error) {
19
		this.token = token;
20
		this.session = session;
21
		this.tokenId = tokenId;
22
		this.duration = duration;
23
		this.lastModif = lastModif;
24
		this.error = error;
25
	}
26
 
27
	public AuthInfo() {
28
		this(null, false, null, 0, null, null);
29
	}
30
}