Last active
August 6, 2019 15:13
-
-
Save adigunhammedolalekan/375b90bec03a26294b7da86dd8552962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SignUpRequest { | |
String firstName; | |
String lastName; | |
String pin; | |
List<Identifier> identifiers; | |
} | |
class Identifier { | |
String identifier; | |
String identifierType; | |
public Identifier(identifier String, identifierType String) { | |
this.identifier = identifier; | |
this.identifierType = identifierType; | |
} | |
} | |
public SignUpRequest createSignupRequest(String firstName, String lastName, String pin, String identifier) { | |
SignUpRequest req = new SignUpRequest(); | |
req.firstName = firstName; | |
req.lastName = lastName; | |
req.pin = pin; | |
req.identifiers = new ArrayList(); | |
req.identifiers.add(new Identifier(identifier, "email")); | |
return req; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment