package com.ss.android.ugc.aweme.account.login.model;

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

public final class CommonUserInfo {
    public static final C2410Rxm Companion = new C2410Rxm((byte) 0);
    public final String avatarUrl;
    public String screenName;
    public final String secUid;
    public final String userName;

    static {
        Covode.recordClassIndex(51097);
    }

    public static /* synthetic */ CommonUserInfo copy$default(CommonUserInfo commonUserInfo, String str, String str2, String str3, String str4, int i, Object obj) {
        if ((i & 1) != 0) {
            str = commonUserInfo.userName;
        }
        if ((i & 2) != 0) {
            str2 = commonUserInfo.avatarUrl;
        }
        if ((i & 4) != 0) {
            str3 = commonUserInfo.secUid;
        }
        if ((i & 8) != 0) {
            str4 = commonUserInfo.screenName;
        }
        return commonUserInfo.copy(str, str2, str3, str4);
    }

    public static final CommonUserInfo defaultCommonUserInfo() {
        return Companion.LIZ();
    }

    private Object[] getObjects() {
        return new Object[]{this.userName, this.avatarUrl, this.secUid, this.screenName};
    }

    public final CommonUserInfo copy(String str, String str2, String str3, String str4) {
        M12.LIZ(str, str2);
        return new CommonUserInfo(str, str2, str3, str4);
    }

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

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

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

    public final String getAvatarUrl() {
        return this.avatarUrl;
    }

    public final String getScreenName() {
        return this.screenName;
    }

    public final String getSecUid() {
        return this.secUid;
    }

    public final String getUserName() {
        return this.userName;
    }

    public final boolean isCommonInfoAvailable() {
        if (this.userName.length() <= 0 || this.avatarUrl.length() <= 0) {
            return false;
        }
        return true;
    }

    public final void setScreenName(String str) {
        this.screenName = str;
    }

    public CommonUserInfo(String str, String str2, String str3, String str4) {
        M12.LIZ(str, str2);
        this.userName = str;
        this.avatarUrl = str2;
        this.secUid = str3;
        this.screenName = str4;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ CommonUserInfo(String str, String str2, String str3, String str4, int i, 2HN r7) {
        this(str, str2, str3, (i & 8) != 0 ? null : str4);
    }
}
