-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathStore.java
More file actions
executable file
·44 lines (34 loc) · 1.04 KB
/
Store.java
File metadata and controls
executable file
·44 lines (34 loc) · 1.04 KB
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 br.com.userede.erede;
public class Store {
private Environment environment;
private String filiation; // clientId
private String accessToken; // temporary access_token
public Store(String filiation, String accessToken, Environment environment) {
this.filiation = filiation;
this.accessToken = accessToken;
this.environment = environment;
}
public Store(String filiation, String accessToken) {
this(filiation, accessToken, Environment.production());
}
public Environment getEnvironment() {
return environment;
}
public Store setEnvironment(Environment environment) {
this.environment = environment;
return this;
}
public String getFiliation() {
return filiation;
}
public Store setFiliation(String filiation) {
this.filiation = filiation;
return this;
}
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
}