Package com.mparticle.identity
Class AliasResponse
- java.lang.Object
-
- com.mparticle.identity.AliasResponse
-
public class AliasResponse extends java.lang.ObjectObject describing the results of the most recent Alias request, including success indicators, and any error messages.
-
-
Constructor Summary
Constructors Constructor Description AliasResponse(com.mparticle.internal.MParticleApiClient.AliasNetworkResponse response, AliasRequest originalRequst, java.lang.String requestId, boolean willRetry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorResponse()The error response message returned by the server, if there was oneAliasRequestgetRequest()A copy of theAliasRequestobject passed intoIdentityApi.aliasUsers(AliasRequest)that thisAliasResponseis describingjava.lang.StringgetRequestId()The internal ID for the Alias request.intgetResponseCode()The HTTP response code for the Alias network requestbooleanisSuccessful()Whether or not the request was successfulbooleanwillRetry()Whether or not this request will be retried.
-
-
-
Constructor Detail
-
AliasResponse
public AliasResponse(@NonNull com.mparticle.internal.MParticleApiClient.AliasNetworkResponse response, @NonNull AliasRequest originalRequst, @NonNull java.lang.String requestId, boolean willRetry)
-
-
Method Detail
-
getResponseCode
public int getResponseCode()
The HTTP response code for the Alias network request- Returns:
-
getRequestId
@NonNull public java.lang.String getRequestId()
The internal ID for the Alias request. EachAliasRequesthas a unique, consistent request id- Returns:
-
getRequest
@NonNull public AliasRequest getRequest()
A copy of theAliasRequestobject passed intoIdentityApi.aliasUsers(AliasRequest)that thisAliasResponseis describing- Returns:
-
isSuccessful
public boolean isSuccessful()
Whether or not the request was successful- Returns:
-
willRetry
public boolean willRetry()
Whether or not this request will be retried. Retries are handled by the SDK, so this does not indicate that any action needs to be taken. Requests that result in recoverable errors, such as rate limiting server error will be retried, while authentication errors, malformed requests and others will not be retried- Returns:
-
getErrorResponse
@Nullable public java.lang.String getErrorResponse()
The error response message returned by the server, if there was one- Returns:
-
-