@Test public void testParcelable() { final LineLoginResult expected = loginResultBuilder().build(); final Parcel parcel = Parcel.obtain(); expected.writeToParcel(parcel, 0); parcel.setDataPosition(0); final LineLoginResult actual = LineLoginResult.CREATOR.createFromParcel(parcel); assertEquals(expected, actual); }
@Override public void writeToParcel(final Parcel dest, final int flags) { writeEnum(dest, responseCode); dest.writeString(nonce); dest.writeParcelable(lineProfile, flags); dest.writeParcelable(lineIdToken, flags); dest.writeValue(friendshipStatusChanged); dest.writeParcelable(lineCredential, flags); dest.writeParcelable(errorData, flags); }
LineLoginResult implements Parcelable { @Override public void writeToParcel(final Parcel dest, final int flags) { writeEnum(dest, responseCode); dest.writeString(nonce); dest.writeParcelable(lineProfile, flags); dest.writeParcelable(lineIdToken, flags); dest.writeValue(friendshipStatusChanged); dest.writeParcelable(lineCredential, flags); dest.writeParcelable(errorData, flags); } }
LineLoginResult implements Parcelable { @Override public void writeToParcel(final Parcel dest, final int flags) { writeEnum(dest, responseCode); dest.writeString(nonce); dest.writeParcelable(lineProfile, flags); dest.writeParcelable(lineIdToken, flags); dest.writeValue(friendshipStatusChanged); dest.writeParcelable(lineCredential, flags); dest.writeParcelable(errorData, flags); } private  LineLoginResult(final Builder builder); private  LineLoginResult(@NonNull final Parcel in); }
LineLoginResult implements Parcelable { @Override public void writeToParcel(final Parcel dest, final int flags) { writeEnum(dest, responseCode); dest.writeString(nonce); dest.writeParcelable(lineProfile, flags); dest.writeParcelable(lineIdToken, flags); dest.writeValue(friendshipStatusChanged); dest.writeParcelable(lineCredential, flags); dest.writeParcelable(errorData, flags); } private  LineLoginResult(final Builder builder); private  LineLoginResult(@NonNull final Parcel in); static LineLoginResult error(@NonNull final LineApiResponseCode resultCode,
                                        @NonNull final LineApiError errorData); static LineLoginResult error(@NonNull final LineApiResponse<?> apiResponse); static LineLoginResult internalError(@NonNull final LineApiError errorData); static LineLoginResult internalError(@NonNull final String errorMessage); static LineLoginResult internalError(@NonNull final Exception e); static LineLoginResult authenticationAgentError(@NonNull final LineApiError errorData); static LineLoginResult canceledError(); @Override int describeContents(); @Override void writeToParcel(final Parcel dest, final int flags); boolean isSuccess(); @NonNull LineApiResponseCode getResponseCode(); @Nullable String getNonce(); @Nullable LineProfile getLineProfile(); @Nullable LineIdToken getLineIdToken(); @NonNull Boolean getFriendshipStatusChanged(); @Nullable LineCredential getLineCredential(); @NonNull LineApiError getErrorData(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LineLoginResult implements Parcelable { @Override public void writeToParcel(final Parcel dest, final int flags) { writeEnum(dest, responseCode); dest.writeString(nonce); dest.writeParcelable(lineProfile, flags); dest.writeParcelable(lineIdToken, flags); dest.writeValue(friendshipStatusChanged); dest.writeParcelable(lineCredential, flags); dest.writeParcelable(errorData, flags); } private  LineLoginResult(final Builder builder); private  LineLoginResult(@NonNull final Parcel in); static LineLoginResult error(@NonNull final LineApiResponseCode resultCode,
                                        @NonNull final LineApiError errorData); static LineLoginResult error(@NonNull final LineApiResponse<?> apiResponse); static LineLoginResult internalError(@NonNull final LineApiError errorData); static LineLoginResult internalError(@NonNull final String errorMessage); static LineLoginResult internalError(@NonNull final Exception e); static LineLoginResult authenticationAgentError(@NonNull final LineApiError errorData); static LineLoginResult canceledError(); @Override int describeContents(); @Override void writeToParcel(final Parcel dest, final int flags); boolean isSuccess(); @NonNull LineApiResponseCode getResponseCode(); @Nullable String getNonce(); @Nullable LineProfile getLineProfile(); @Nullable LineIdToken getLineIdToken(); @NonNull Boolean getFriendshipStatusChanged(); @Nullable LineCredential getLineCredential(); @NonNull LineApiError getErrorData(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Creator<LineLoginResult> CREATOR; }