@LevelUpApi(contract=ENTERPRISE) public static final class UserRequestFactory.UserInfoRequestBuilder extends Object
Constructor and Description |
---|
UserInfoRequestBuilder(Context context,
AccessTokenRetriever retriever)
Creates a new builder for a
UserRequestFactory request. |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
build()
Builds the request which updates the User's information.
|
UserRequestFactory.UserInfoRequestBuilder |
withBornAt(String bornAt)
Adds the User's born at date information.
|
UserRequestFactory.UserInfoRequestBuilder |
withCustomAttribute(String key,
String value)
Adds the User's custom attributes.
|
UserRequestFactory.UserInfoRequestBuilder |
withEmail(String email)
Adds the User's email address.
|
UserRequestFactory.UserInfoRequestBuilder |
withFirstName(String firstName)
Adds the User's first name.
|
UserRequestFactory.UserInfoRequestBuilder |
withGender(String gender)
Adds the User's gender information.
|
UserRequestFactory.UserInfoRequestBuilder |
withLastName(String lastName)
Adds the User's last name.
|
UserRequestFactory.UserInfoRequestBuilder |
withNewPassword(String newPassword)
Adds the User's new password.
|
public UserInfoRequestBuilder(Context context, AccessTokenRetriever retriever)
UserRequestFactory
request.context
- The Application context.retriever
- the implementation of AccessTokenRetriever
to use to get the
User's AccessToken
if needed.@AccessTokenRequired @LevelUpApi(contract=ENTERPRISE) public AbstractRequest build()
AbstractRequest
which updates the User's information.public UserRequestFactory.UserInfoRequestBuilder withBornAt(String bornAt)
bornAt
- The born at date as an ISO date time.UserRequestFactory.UserInfoRequestBuilder
for chaining convenience.public UserRequestFactory.UserInfoRequestBuilder withCustomAttribute(String key, String value)
key
- The custom attribute key.value
- The custom attribute value.UserRequestFactory.UserInfoRequestBuilder
for chaining convenience.public UserRequestFactory.UserInfoRequestBuilder withEmail(String email)
email
- The User's email address.UserRequestFactory.UserInfoRequestBuilder
for chaining convenience.public UserRequestFactory.UserInfoRequestBuilder withFirstName(String firstName)
firstName
- The User's first name.UserRequestFactory.UserInfoRequestBuilder
for chaining convenience.public UserRequestFactory.UserInfoRequestBuilder withGender(String gender)
gender
- The gender string generated by
User.Gender.toString()
.UserRequestFactory.UserInfoRequestBuilder
for chaining convenience.public UserRequestFactory.UserInfoRequestBuilder withLastName(String lastName)
lastName
- The User's last name.UserRequestFactory.UserInfoRequestBuilder
for chaining convenience.public UserRequestFactory.UserInfoRequestBuilder withNewPassword(String newPassword)
newPassword
- The User's new password or null if the password is not being modified.UserRequestFactory.UserInfoRequestBuilder
for chaining convenience.