forked from jesperfj/force-rest-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Identity.java
217 lines (167 loc) · 3.74 KB
/
Identity.java
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
package com.force.api;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.Date;
import java.util.Map;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Identity {
String id;
boolean assertedUser;
String userId;
String organizationId;
String username;
String nickName;
String displayName;
String email;
String firstName;
String lastName;
Status status;
Map<String, String> photos;
Map<String, String> urls;
boolean isActive;
String userType;
String language;
String locale;
long utcOffset;
Date lastModifiedDate;
public class Status {
Date createdDate;
String body;
public Date getCreatedDate() {
return createdDate;
}
public String getBody() {
return body;
}
@JsonSetter(value="created_date")
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
public void setBody(String body) {
this.body = body;
}
}
public String getId() {
return id;
}
public boolean isAssertedUser() {
return assertedUser;
}
public String getUserId() {
return userId;
}
public String getOrganizationId() {
return organizationId;
}
public String getUsername() {
return username;
}
public String getNickName() {
return nickName;
}
public String getDisplayName() {
return displayName;
}
public String getEmail() {
return email;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public Status getStatus() {
return status;
}
public Map<String, String> getPhotos() {
return photos;
}
public Map<String, String> getUrls() {
return urls;
}
public boolean isActive() {
return isActive;
}
public String getUserType() {
return userType;
}
public String getLanguage() {
return language;
}
public String getLocale() {
return locale;
}
public long getUtcOffset() {
return utcOffset;
}
public Date getLastModifiedDate() {
return lastModifiedDate;
}
public void setId(String id) {
this.id = id;
}
@JsonSetter(value="asserted_user")
public void setAssertedUser(boolean assertedUser) {
this.assertedUser = assertedUser;
}
@JsonSetter(value="user_id")
public void setUserId(String userId) {
this.userId = userId;
}
@JsonSetter(value="organization_id")
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public void setUsername(String username) {
this.username = username;
}
@JsonSetter(value="nick_name")
public void setNickName(String nickName) {
this.nickName = nickName;
}
@JsonSetter(value="display_name")
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public void setEmail(String email) {
this.email = email;
}
@JsonSetter(value="first_name")
public void setFirstName(String firstName) {
this.firstName = firstName;
}
@JsonSetter(value="last_name")
public void setLastName(String lastName) {
this.lastName = lastName;
}
public void setStatus(Status status) {
this.status = status;
}
public void setPhotos(Map<String, String> photos) {
this.photos = photos;
}
public void setUrls(Map<String, String> urls) {
this.urls = urls;
}
public void setActive(boolean isActive) {
this.isActive = isActive;
}
@JsonSetter(value="user_type")
public void setUserType(String userType) {
this.userType = userType;
}
public void setLanguage(String language) {
this.language = language;
}
public void setLocale(String locale) {
this.locale = locale;
}
public void setUtcOffset(long utcOffset) {
this.utcOffset = utcOffset;
}
@JsonSetter(value="last_modified_date")
public void setLastModifiedDate(Date lastModifiedDate) {
this.lastModifiedDate = lastModifiedDate;
}
}