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

import X.C2488Rz2;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.profile.model.User;
import java.util.Objects;

public final class TPUserInfo {
    public static final C2488Rz2 Companion = new C2488Rz2((byte) 0);
    public final String avatarUrl;
    public final String userName;

    static {
        Covode.recordClassIndex(51104);
    }

    public static /* synthetic */ TPUserInfo copy$default(TPUserInfo tPUserInfo, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = tPUserInfo.userName;
        }
        if ((i & 2) != 0) {
            str2 = tPUserInfo.avatarUrl;
        }
        return tPUserInfo.copy(str, str2);
    }

    public static final TPUserInfo from(User user) {
        return Companion.LIZ(user);
    }

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

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

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

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

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

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

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

    public TPUserInfo(String str, String str2) {
        M12.LIZ(str, str2);
        this.userName = str;
        this.avatarUrl = str2;
    }
}
