package com.ss.android.ugc.aweme.user.repository;

import X.2HN;
import X.5Am;
import X.B8S;
import X.B8T;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.profile.model.FollowStatus;
import com.ss.android.ugc.aweme.profile.model.User;
import java.util.Objects;

public final class UserState implements 5Am {
    public final B8T<FollowStatus> followStatus;
    public final boolean followerIsRemoved;
    public final B8T<String> remarkName;
    public final Throwable removeFollowerError;
    public final User user;

    static {
        Covode.recordClassIndex(121943);
    }

    public UserState() {
        this((User) null, false, (B8T) null, (B8T) null, (Throwable) null, 31, (2HN) null);
    }

    public UserState(User user2) {
        this(user2, false, (B8T) null, (B8T) null, (Throwable) null, 30, (2HN) null);
    }

    public UserState(User user2, boolean z) {
        this(user2, z, (B8T) null, (B8T) null, (Throwable) null, 28, (2HN) null);
    }

    public UserState(User user2, boolean z, B8T<FollowStatus> b8t) {
        this(user2, z, b8t, (B8T) null, (Throwable) null, 24, (2HN) null);
    }

    public UserState(User user2, boolean z, B8T<FollowStatus> b8t, B8T<String> b8t2) {
        this(user2, z, b8t, b8t2, (Throwable) null, 16, (2HN) null);
    }

    public static /* synthetic */ UserState copy$default(UserState userState, User user2, boolean z, B8T<FollowStatus> b8t, B8T<String> b8t2, Throwable th, int i, Object obj) {
        if ((i & 1) != 0) {
            user2 = userState.user;
        }
        if ((i & 2) != 0) {
            z = userState.followerIsRemoved;
        }
        if ((i & 4) != 0) {
            b8t = userState.followStatus;
        }
        if ((i & 8) != 0) {
            b8t2 = userState.remarkName;
        }
        if ((i & 16) != 0) {
            th = userState.removeFollowerError;
        }
        return userState.copy(user2, z, b8t, b8t2, th);
    }

    private Object[] getObjects() {
        return new Object[]{this.user, Boolean.valueOf(this.followerIsRemoved), this.followStatus, this.remarkName, this.removeFollowerError};
    }

    public final UserState copy(User user2, boolean z, B8T<FollowStatus> b8t, B8T<String> b8t2, Throwable th) {
        User user3 = user2;
        B8T<FollowStatus> b8t3 = b8t;
        B8T<String> b8t4 = b8t2;
        M12.LIZ(user3, b8t3, b8t4);
        return new UserState(user3, z, b8t3, b8t4, th);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof UserState)) {
            return false;
        }
        return M12.LIZ(((UserState) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("UserState:%s,%s,%s,%s,%s", getObjects());
    }

    public final B8T<FollowStatus> getFollowStatus() {
        return this.followStatus;
    }

    public final boolean getFollowerIsRemoved() {
        return this.followerIsRemoved;
    }

    public final B8T<String> getRemarkName() {
        return this.remarkName;
    }

    public final Throwable getRemoveFollowerError() {
        return this.removeFollowerError;
    }

    public final User getUser() {
        return this.user;
    }

    public UserState(User user2, boolean z, B8T<FollowStatus> b8t, B8T<String> b8t2, Throwable th) {
        M12.LIZ(user2, b8t, b8t2);
        this.user = user2;
        this.followerIsRemoved = z;
        this.followStatus = b8t;
        this.remarkName = b8t2;
        this.removeFollowerError = th;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ UserState(User user2, boolean z, B8T b8t, B8T b8t2, Throwable th, int i, 2HN r13) {
        this((i & 1) != 0 ? new User() : user2, (i & 2) != 0 ? false : z, (i & 4) != 0 ? B8S.LIZ : b8t, (i & 8) != 0 ? B8S.LIZ : b8t2, (i & 16) != 0 ? null : th);
    }
}
