View Javadoc
1   package org.oxerr.peatio.rest.dto;
2   
3   import com.fasterxml.jackson.annotation.JsonProperty;
4   
5   public class Member extends BaseObject {
6   
7   	private final String sn;
8   	private final String name;
9   	private final String email;
10  	private final boolean activated;
11  	private final Account[] accounts;
12  
13  	/**
14  	 *
15  	 * @param sn unique identifier of user.
16  	 * @param name user name.
17  	 * @param email user email.
18  	 * @param activated whether user is activated.
19  	 * @param accounts user's accounts info.
20  	 */
21  	public Member(
22  			@JsonProperty("sn") String sn,
23  			@JsonProperty("name") String name,
24  			@JsonProperty("email") String email,
25  			@JsonProperty("activated") boolean activated,
26  			@JsonProperty("accounts") Account[] accounts) {
27  		this.sn = sn;
28  		this.name = name;
29  		this.email = email;
30  		this.activated = activated;
31  		this.accounts = accounts;
32  	}
33  
34  	public String getSn() {
35  		return sn;
36  	}
37  
38  	public String getName() {
39  		return name;
40  	}
41  
42  	public String getEmail() {
43  		return email;
44  	}
45  
46  	public boolean isActivated() {
47  		return activated;
48  	}
49  
50  	public Account[] getAccounts() {
51  		return accounts;
52  	}
53  
54  }