public class LineLoginResult
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LineLoginResult.Builder |
| Modifier and Type | Field and Description |
|---|---|
static <any> |
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 used for performing login in LINE.
|
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(Parcel dest,
int flags) |
public static LineLoginResult error(@NonNull LineApiResponseCode resultCode, @NonNull LineApiError errorData)
public static LineLoginResult error(@NonNull LineApiResponse<?> apiResponse)
public static LineLoginResult internalError(@NonNull LineApiError errorData)
public static LineLoginResult internalError(@NonNull java.lang.String errorMessage)
public static LineLoginResult internalError(@NonNull java.lang.Exception e)
public static LineLoginResult authenticationAgentError(@NonNull LineApiError errorData)
public static LineLoginResult canceledError()
public int describeContents()
public void writeToParcel(Parcel dest,
int flags)
public boolean isSuccess()
@NonNull public LineApiResponseCode getResponseCode()
LineApiResponseCode object with the response code that
indicates whether the login was successful or not.@Nullable public java.lang.String getNonce()
@Nullable public LineProfile getLineProfile()
LineProfile object with the user's LINE profile.@Nullable public LineIdToken getLineIdToken()
LineIdToken object with the user's information.@NonNull public java.lang.Boolean getFriendshipStatusChanged()
@Nullable public LineCredential getLineCredential()
LineCredential object with the user's authentication credentials.@NonNull 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