Package im.getsocial.sdk.communities
Class UserId
- java.lang.Object
-
- im.getsocial.sdk.communities.UserId
-
public final class UserId extends java.lang.Object
An entity to pass describe one or multiple user IDs via GetSocial or custom identity.
-
-
Constructor Summary
Constructors Constructor Description UserId()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserId
create(java.lang.String userId)
Create a single GetSocial user identifier.static UserId
createForApp()
Create a single GetSocial user identifier for the app.static UserId
createWithProvider(java.lang.String providerId, java.lang.String identityId)
Create a single identity user identifier for giver provider ID.static UserId
currentUser()
java.lang.String
toString()
-
-
-
Method Detail
-
create
public static UserId create(java.lang.String userId)
Create a single GetSocial user identifier.- Parameters:
userId
- GetSocial user ID.- Returns:
- new identifier.
-
createWithProvider
public static UserId createWithProvider(java.lang.String providerId, java.lang.String identityId)
Create a single identity user identifier for giver provider ID.- Parameters:
providerId
- custom identity provider ID.identityId
- identity user ID.- Returns:
- new identifier.
-
createForApp
public static UserId createForApp()
Create a single GetSocial user identifier for the app.- Returns:
- new identifier.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-