JSON против XML и немного рефакторинга. Приложение 1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package ru.golodnyj.lection.json;
/**
* Date: 27.08.2009
* Time: 8:13:00
*
* @author golodnyj
* @version 0.1
*/
public class Client {
private String userName;
private boolean verified;
private int userId;
public Client(String userName, boolean verified, int userId) {
this.userName = userName;
this.verified = verified;
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public boolean isVerified() {
return verified;
}
public void setVerified(boolean verified) {
this.verified = verified;
}
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
}