Package com.mparticle.identity
Class IdentityHttpResponse
- java.lang.Object
-
- com.mparticle.identity.IdentityHttpResponse
-
public final class IdentityHttpResponse extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IdentityHttpResponse.Error
-
Constructor Summary
Constructors Constructor Description IdentityHttpResponse(int code, long mpid, java.lang.String context, java.util.ArrayList<IdentityHttpResponse.Error> errors)
IdentityHttpResponse(int code, java.lang.String errorString)
IdentityHttpResponse(int httpCode, org.json.JSONObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContext()
java.util.List<IdentityHttpResponse.Error>
getErrors()
int
getHttpCode()
long
getMpId()
boolean
isLoggedIn()
boolean
isSuccessful()
java.lang.String
toString()
-
-
-
Field Detail
-
MPID
@NonNull public static final java.lang.String MPID
- See Also:
- Constant Field Values
-
CONTEXT
@NonNull public static final java.lang.String CONTEXT
- See Also:
- Constant Field Values
-
ERRORS
@NonNull public static final java.lang.String ERRORS
- See Also:
- Constant Field Values
-
LOGGED_IN
@NonNull public static final java.lang.String LOGGED_IN
- See Also:
- Constant Field Values
-
CODE
@NonNull public static final java.lang.String CODE
- See Also:
- Constant Field Values
-
MESSAGE
@NonNull public static final java.lang.String MESSAGE
- See Also:
- Constant Field Values
-
UNKNOWN
@NonNull public static final java.lang.String UNKNOWN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IdentityHttpResponse
public IdentityHttpResponse(int code, long mpid, @Nullable java.lang.String context, @Nullable java.util.ArrayList<IdentityHttpResponse.Error> errors)
-
IdentityHttpResponse
public IdentityHttpResponse(int code, @NonNull java.lang.String errorString)
-
IdentityHttpResponse
public IdentityHttpResponse(int httpCode, @Nullable org.json.JSONObject jsonObject) throws org.json.JSONException
- Throws:
org.json.JSONException
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
-
getErrors
@NonNull public java.util.List<IdentityHttpResponse.Error> getErrors()
-
getMpId
public long getMpId()
-
getContext
@Nullable public java.lang.String getContext()
-
getHttpCode
public int getHttpCode()
-
isLoggedIn
public boolean isLoggedIn()
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-