public class LineLoginResult
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static LineLoginResult |
CANCEL |
static android.os.Parcelable.Creator<LineLoginResult> |
CREATOR |
| Constructor and Description |
|---|
LineLoginResult(LineApiResponseCode resultCode,
LineApiError errorData) |
LineLoginResult(LineProfile lineProfile,
LineIdToken lineIdToken,
java.lang.Boolean friendshipStatusChanged,
LineCredential lineCredential) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
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.
|
LineApiResponseCode |
getResponseCode()
Gets the response code that the login returned.
|
int |
hashCode() |
boolean |
isSuccess()
Checks whether the login was successful.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final LineLoginResult CANCEL
public static final android.os.Parcelable.Creator<LineLoginResult> CREATOR
public LineLoginResult(LineProfile lineProfile, LineIdToken lineIdToken, java.lang.Boolean friendshipStatusChanged, LineCredential lineCredential)
public LineLoginResult(LineApiResponseCode resultCode, LineApiError errorData)
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 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