Package com.mparticle.identity
Class IdentityApiResult
- java.lang.Object
-
- com.mparticle.identity.IdentityApiResult
-
public final class IdentityApiResult extends java.lang.Object
A class for expressing the results of an IdentityApi request
-
-
Constructor Summary
Constructors Constructor Description IdentityApiResult(MParticleUser user, MParticleUser previousUser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MParticleUser
getPreviousUser()
The User which is being replaced, if the IdentityApi call this instance is describing, resulted in a newIdentityApi.getCurrentUser()
, otherwise 'null'MParticleUser
getUser()
Query the User which was returned by the IdentityApi request
-
-
-
Constructor Detail
-
IdentityApiResult
public IdentityApiResult(@NonNull MParticleUser user, @Nullable MParticleUser previousUser)
-
-
Method Detail
-
getUser
@NonNull public MParticleUser getUser()
Query the User which was returned by the IdentityApi request- Returns:
- the User
-
getPreviousUser
@Nullable public MParticleUser getPreviousUser()
The User which is being replaced, if the IdentityApi call this instance is describing, resulted in a newIdentityApi.getCurrentUser()
, otherwise 'null'- Returns:
-
-