package com.ss.android.ugc.aweme.profile.model;

import X.2HN;
import X.M12;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class PostGuideTasks {
    public final int followCountFromRecommend;
    public final boolean isFollowTaskDone;
    public final boolean isProfileTaskDone;
    public final boolean isShootTaskDone;

    static {
        Covode.recordClassIndex(98821);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_profile_model_PostGuideTasks_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ PostGuideTasks copy$default(PostGuideTasks postGuideTasks, boolean z, boolean z2, boolean z3, int i, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            z = postGuideTasks.isFollowTaskDone;
        }
        if ((i2 & 2) != 0) {
            z2 = postGuideTasks.isShootTaskDone;
        }
        if ((i2 & 4) != 0) {
            z3 = postGuideTasks.isProfileTaskDone;
        }
        if ((i2 & 8) != 0) {
            i = postGuideTasks.followCountFromRecommend;
        }
        return postGuideTasks.copy(z, z2, z3, i);
    }

    private Object[] getObjects() {
        return new Object[]{Boolean.valueOf(this.isFollowTaskDone), Boolean.valueOf(this.isShootTaskDone), Boolean.valueOf(this.isProfileTaskDone), Integer.valueOf(this.followCountFromRecommend)};
    }

    public final PostGuideTasks copy(boolean z, boolean z2, boolean z3, int i) {
        return new PostGuideTasks(z, z2, z3, i);
    }

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

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

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

    public final boolean allAccomplish() {
        if (!this.isFollowTaskDone || !this.isShootTaskDone || !this.isProfileTaskDone) {
            return false;
        }
        return true;
    }

    public final int taskCountDone() {
        return (this.isFollowTaskDone ? 1 : 0) + (this.isShootTaskDone ? 1 : 0) + (this.isProfileTaskDone ? 1 : 0);
    }

    public PostGuideTasks(boolean z, boolean z2, boolean z3, int i) {
        this.isFollowTaskDone = z;
        this.isShootTaskDone = z2;
        this.isProfileTaskDone = z3;
        this.followCountFromRecommend = i;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ PostGuideTasks(boolean z, boolean z2, boolean z3, int i, int i2, 2HN r7) {
        this(z, z2, z3, (i2 & 8) != 0 ? 0 : i);
    }
}
