Class AliasResponse

  • public class AliasResponse
    extends java.lang.Object
    Object describing the results of the most recent Alias request, including success indicators, and any error messages.
    • Constructor Detail

      • AliasResponse

        public AliasResponse​(@NonNull
                             com.mparticle.internal.MParticleApiClient.AliasNetworkResponse response,
                             AliasRequest originalRequst,
                             java.lang.String requestId,
                             boolean willRetry)
    • Method Detail

      • getResponseCode

        public int getResponseCode()
        The HTTP response code for the Alias network request
      • getRequestId

        public java.lang.String getRequestId()
        The internal ID for the Alias request. Each AliasRequest has a unique, consistent request id
      • isSuccessful

        public boolean isSuccessful()
        Whether or not the request was successful
      • 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
      • getErrorResponse

        public java.lang.String getErrorResponse()
        The error response message returned by the server, if there was one