Package com.mparticle.identity
Class BaseIdentityTask
- java.lang.Object
-
- com.mparticle.MParticleTask<IdentityApiResult>
-
- com.mparticle.identity.BaseIdentityTask
-
public final class BaseIdentityTask extends MParticleTask<IdentityApiResult>
-
-
Constructor Summary
Constructors Constructor Description BaseIdentityTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseIdentityTask
addFailureListener(TaskFailureListener listener)
BaseIdentityTask
addSuccessListener(TaskSuccessListener listener)
IdentityApiResult
getResult()
boolean
isComplete()
boolean
isSuccessful()
void
setFailed(IdentityHttpResponse errorResponse)
void
setSuccessful(IdentityApiResult result)
-
-
-
Method Detail
-
setFailed
public void setFailed(@Nullable IdentityHttpResponse errorResponse)
-
setSuccessful
public void setSuccessful(@NonNull IdentityApiResult result)
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in classMParticleTask<IdentityApiResult>
-
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in classMParticleTask<IdentityApiResult>
-
getResult
@Nullable public IdentityApiResult getResult()
- Specified by:
getResult
in classMParticleTask<IdentityApiResult>
-
addSuccessListener
@NonNull public BaseIdentityTask addSuccessListener(@NonNull TaskSuccessListener listener)
- Specified by:
addSuccessListener
in classMParticleTask<IdentityApiResult>
-
addFailureListener
@NonNull public BaseIdentityTask addFailureListener(@NonNull TaskFailureListener listener)
- Specified by:
addFailureListener
in classMParticleTask<IdentityApiResult>
-
-