Class Profile.Builder
- java.lang.Object
-
- com.rivet.api.resources.identity.common.types.Profile.Builder
-
- All Implemented Interfaces:
Profile._FinalStage,Profile.AccountNumberStage,Profile.AvatarUrlStage,Profile.BioStage,Profile.DisplayNameStage,Profile.ExternalStage,Profile.FollowerCountStage,Profile.FollowingCountStage,Profile.FollowingStage,Profile.IdentityIdStage,Profile.IsAdminStage,Profile.IsFollowingMeStage,Profile.IsMutualFollowingStage,Profile.IsRegisteredStage,Profile.JoinTsStage
- Enclosing class:
- Profile
public static final class Profile.Builder extends java.lang.Object implements Profile.IdentityIdStage, Profile.DisplayNameStage, Profile.AccountNumberStage, Profile.AvatarUrlStage, Profile.IsRegisteredStage, Profile.ExternalStage, Profile.IsAdminStage, Profile.FollowerCountStage, Profile.FollowingCountStage, Profile.FollowingStage, Profile.IsFollowingMeStage, Profile.IsMutualFollowingStage, Profile.JoinTsStage, Profile.BioStage, Profile._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profile.AvatarUrlStageaccountNumber(int accountNumber)Profile._FinalStageaddAllGames(java.util.List<StatSummary> games)Profile._FinalStageaddAllGroups(java.util.List<Group> groups)Profile._FinalStageaddAllLinkedAccounts(java.util.List<LinkedAccount> linkedAccounts)Profile._FinalStageaddGames(StatSummary games)Profile._FinalStageaddGroups(Group groups)Profile._FinalStageaddLinkedAccounts(LinkedAccount linkedAccounts)Profile.IsRegisteredStageavatarUrl(java.lang.String avatarUrl)The URL of this identity's avatar image.Profile._FinalStageawaitingDeletion(java.lang.Boolean awaitingDeletion)Whether or not this identity is awaiting account deletion.Profile._FinalStageawaitingDeletion(java.util.Optional<java.lang.Boolean> awaitingDeletion)Profile._FinalStagebio(java.lang.String bio)Profilebuild()Profile._FinalStagedevState(DevState devState)DeprecatedProfile._FinalStagedevState(java.util.Optional<DevState> devState)Profile.AccountNumberStagedisplayName(java.lang.String displayName)Profile.IsAdminStageexternal(ExternalLinks external)Profile.FollowingCountStagefollowerCount(long followerCount)Profile.IsFollowingMeStagefollowing(boolean following)Whether or not the requestee's identity is following this identity.Profile.FollowingStagefollowingCount(long followingCount)Profile.Builderfrom(Profile other)Profile._FinalStagegames(java.util.List<StatSummary> games)Profile._FinalStagegroups(java.util.List<Group> groups)Profile.DisplayNameStageidentityId(java.util.UUID identityId)Profile.FollowerCountStageisAdmin(boolean isAdmin)Whether or not this identity is an admin.Profile.IsMutualFollowingStageisFollowingMe(boolean isFollowingMe)Whether or not this identity is both followng and is followed by the requestee's identity.Profile._FinalStageisGameLinked(java.lang.Boolean isGameLinked)Whether or not this game user has been linked through the Rivet dashboard.Profile._FinalStageisGameLinked(java.util.Optional<java.lang.Boolean> isGameLinked)Profile.JoinTsStageisMutualFollowing(boolean isMutualFollowing)Profile.ExternalStageisRegistered(boolean isRegistered)Whether or not this identity is registered with a linked account.Profile.BioStagejoinTs(java.time.OffsetDateTime joinTs)Profile._FinalStagelinkedAccounts(java.util.List<LinkedAccount> linkedAccounts)Profile._FinalStagepresence(Presence presence)Profile._FinalStagepresence(java.util.Optional<Presence> presence)
-
-
-
Method Detail
-
from
public Profile.Builder from(Profile other)
- Specified by:
fromin interfaceProfile.IdentityIdStage
-
identityId
public Profile.DisplayNameStage identityId(java.util.UUID identityId)
- Specified by:
identityIdin interfaceProfile.IdentityIdStage
-
displayName
public Profile.AccountNumberStage displayName(java.lang.String displayName)
- Specified by:
displayNamein interfaceProfile.DisplayNameStage
-
accountNumber
public Profile.AvatarUrlStage accountNumber(int accountNumber)
- Specified by:
accountNumberin interfaceProfile.AccountNumberStage
-
avatarUrl
public Profile.IsRegisteredStage avatarUrl(java.lang.String avatarUrl)
The URL of this identity's avatar image.
- Specified by:
avatarUrlin interfaceProfile.AvatarUrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isRegistered
public Profile.ExternalStage isRegistered(boolean isRegistered)
Whether or not this identity is registered with a linked account.
- Specified by:
isRegisteredin interfaceProfile.IsRegisteredStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
external
public Profile.IsAdminStage external(ExternalLinks external)
- Specified by:
externalin interfaceProfile.ExternalStage
-
isAdmin
public Profile.FollowerCountStage isAdmin(boolean isAdmin)
Whether or not this identity is an admin.
- Specified by:
isAdminin interfaceProfile.IsAdminStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
followerCount
public Profile.FollowingCountStage followerCount(long followerCount)
- Specified by:
followerCountin interfaceProfile.FollowerCountStage
-
followingCount
public Profile.FollowingStage followingCount(long followingCount)
- Specified by:
followingCountin interfaceProfile.FollowingCountStage
-
following
public Profile.IsFollowingMeStage following(boolean following)
Whether or not the requestee's identity is following this identity.
- Specified by:
followingin interfaceProfile.FollowingStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isFollowingMe
public Profile.IsMutualFollowingStage isFollowingMe(boolean isFollowingMe)
Whether or not this identity is both followng and is followed by the requestee's identity.
- Specified by:
isFollowingMein interfaceProfile.IsFollowingMeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isMutualFollowing
public Profile.JoinTsStage isMutualFollowing(boolean isMutualFollowing)
- Specified by:
isMutualFollowingin interfaceProfile.IsMutualFollowingStage
-
joinTs
public Profile.BioStage joinTs(java.time.OffsetDateTime joinTs)
- Specified by:
joinTsin interfaceProfile.JoinTsStage
-
bio
public Profile._FinalStage bio(java.lang.String bio)
- Specified by:
bioin interfaceProfile.BioStage
-
awaitingDeletion
public Profile._FinalStage awaitingDeletion(java.lang.Boolean awaitingDeletion)
Whether or not this identity is awaiting account deletion. Only visible to when the requestee is this identity.
- Specified by:
awaitingDeletionin interfaceProfile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
awaitingDeletion
public Profile._FinalStage awaitingDeletion(java.util.Optional<java.lang.Boolean> awaitingDeletion)
- Specified by:
awaitingDeletionin interfaceProfile._FinalStage
-
addAllGames
public Profile._FinalStage addAllGames(java.util.List<StatSummary> games)
- Specified by:
addAllGamesin interfaceProfile._FinalStage
-
addGames
public Profile._FinalStage addGames(StatSummary games)
- Specified by:
addGamesin interfaceProfile._FinalStage
-
games
public Profile._FinalStage games(java.util.List<StatSummary> games)
- Specified by:
gamesin interfaceProfile._FinalStage
-
addAllGroups
public Profile._FinalStage addAllGroups(java.util.List<Group> groups)
- Specified by:
addAllGroupsin interfaceProfile._FinalStage
-
addGroups
public Profile._FinalStage addGroups(Group groups)
- Specified by:
addGroupsin interfaceProfile._FinalStage
-
groups
public Profile._FinalStage groups(java.util.List<Group> groups)
- Specified by:
groupsin interfaceProfile._FinalStage
-
addAllLinkedAccounts
public Profile._FinalStage addAllLinkedAccounts(java.util.List<LinkedAccount> linkedAccounts)
- Specified by:
addAllLinkedAccountsin interfaceProfile._FinalStage
-
addLinkedAccounts
public Profile._FinalStage addLinkedAccounts(LinkedAccount linkedAccounts)
- Specified by:
addLinkedAccountsin interfaceProfile._FinalStage
-
linkedAccounts
public Profile._FinalStage linkedAccounts(java.util.List<LinkedAccount> linkedAccounts)
- Specified by:
linkedAccountsin interfaceProfile._FinalStage
-
devState
public Profile._FinalStage devState(DevState devState)
Deprecated
- Specified by:
devStatein interfaceProfile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
devState
public Profile._FinalStage devState(java.util.Optional<DevState> devState)
- Specified by:
devStatein interfaceProfile._FinalStage
-
isGameLinked
public Profile._FinalStage isGameLinked(java.lang.Boolean isGameLinked)
Whether or not this game user has been linked through the Rivet dashboard.
- Specified by:
isGameLinkedin interfaceProfile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isGameLinked
public Profile._FinalStage isGameLinked(java.util.Optional<java.lang.Boolean> isGameLinked)
- Specified by:
isGameLinkedin interfaceProfile._FinalStage
-
presence
public Profile._FinalStage presence(Presence presence)
- Specified by:
presencein interfaceProfile._FinalStage
-
presence
public Profile._FinalStage presence(java.util.Optional<Presence> presence)
- Specified by:
presencein interfaceProfile._FinalStage
-
build
public Profile build()
- Specified by:
buildin interfaceProfile._FinalStage
-
-