Profile
Profile
is an object containing user information that is used when boot
public class Profile {
String name;
String email;
String avatarUrl;
String mobileNumber;
Map<String, Object> property;
}
setName
Returns Profile
object with setting user name
public Profile setName(String name)
parameter | type | description |
---|---|---|
name | String | user name |
setEmail
Returns Profile
object with setting email
public Profile setEmail(String email)
parameter | type | description |
---|---|---|
String | user email |
setAvatarUrl
Returns Profile
object with setting avatar URL
public Profile setAvatarUrl(String avatarUrl)
parameter | type | description |
---|---|---|
avatarUrl | String | url of user image |
setMobileNumber
Returns Profile
object with setting mobile number
public Profile setMobileNumber(String mobileNumber)
parameter | type | description |
---|---|---|
mobileNumber | String | user's mobile number |
setProperty
Returns Profile
object with setting meta data
public Profile setProperty(String key, Object value)
parameter | type | description |
---|---|---|
key | String | property key |
value | Object | property value |
Usage
Profile profile = Profile.create()
.setName("Zoyi Guest")
.setEmail("[email protected]")
.setMobileNumber("+821012345678")
.setAvatarUrl("http://channel.io")
.setProperty("HomePage", "www.zoyi.co");
Updated 5 months ago