public class LineLoginResult
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
LineLoginResult.Builder |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<LineLoginResult> |
CREATOR |
| Modifier and Type | Method and Description |
|---|---|
static LineLoginResult |
authenticationAgentError(LineApiError errorData) |
static LineLoginResult |
canceledError() |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
static LineLoginResult |
error(LineApiResponse<?> apiResponse) |
static LineLoginResult |
error(LineApiResponseCode resultCode,
LineApiError errorData) |
LineApiError |
getErrorData()
Gets information about a login error that has occurred.
|
java.lang.Boolean |
getFriendshipStatusChanged()
Gets the friendship status of the user and the bot linked to your LINE Login channel.
|
LineCredential |
getLineCredential()
Gets the user's credentials.
|
LineIdToken |
getLineIdToken()
Gets the ID token that contains the user's information.
|
LineProfile |
getLineProfile()
Gets the user's profile information.
|
java.lang.String |
getNonce()
Gets the `nonce` value that used for performing LINE Login
|
LineApiResponseCode |
getResponseCode()
Gets the response code that the login returned.
|
int |
hashCode() |
static LineLoginResult |
internalError(java.lang.Exception e) |
static LineLoginResult |
internalError(LineApiError errorData) |
static LineLoginResult |
internalError(java.lang.String errorMessage) |
boolean |
isSuccess()
Checks whether the login was successful.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<LineLoginResult> CREATOR
public static LineLoginResult error(LineApiResponseCode resultCode, LineApiError errorData)
public static LineLoginResult error(LineApiResponse<?> apiResponse)
public static LineLoginResult internalError(LineApiError errorData)
public static LineLoginResult internalError(java.lang.String errorMessage)
public static LineLoginResult internalError(java.lang.Exception e)
public static LineLoginResult authenticationAgentError(LineApiError errorData)
public static LineLoginResult canceledError()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic boolean isSuccess()
public LineApiResponseCode getResponseCode()
LineApiResponseCode object with the response code that
indicates whether the login was successful or not.public java.lang.String getNonce()
public LineProfile getLineProfile()
LineProfile object with the user's LINE profile.public LineIdToken getLineIdToken()
LineIdToken object with the user's information.public java.lang.Boolean getFriendshipStatusChanged()
public LineCredential getLineCredential()
LineCredential object with the user's authentication credentials.public LineApiError getErrorData()
LineApiError object that contains information about the
error if a login error has occurred. Contains a response of
0 and a null string if no error occurs.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object