mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-10 18:55:03 +00:00
User ease of use
Make email retrieveable client-facing
This commit is contained in:
26
Lambdas/Lists/User/src/User.java
Normal file
26
Lambdas/Lists/User/src/User.java
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
public class User {
|
||||
String cognitoID;
|
||||
String email;
|
||||
|
||||
public User(String cognitoID, String email) {
|
||||
this.cognitoID = cognitoID;
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getCognitoID() {
|
||||
return cognitoID;
|
||||
}
|
||||
|
||||
public void setCognitoID(String cognitoID) {
|
||||
this.cognitoID = cognitoID;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
}
|
||||
@@ -66,6 +66,6 @@ public class UserGetter implements CallHandler {
|
||||
}
|
||||
System.out.println(attribute.getName() + ": " + attribute.getValue());
|
||||
}
|
||||
return attributeToReturn;
|
||||
return new User(cognitoID, attributeToReturn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user