package com.ss.android.ugc.aweme.donation.token;

import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.aweme.base.api.BaseResponse;
import java.io.Serializable;
import java.util.Objects;

public final class DonationTokenResponse extends BaseResponse implements Serializable {
    @c(LIZ = "data")
    public final DonationTokenBean data;

    static {
        Covode.recordClassIndex(66375);
    }

    public static /* synthetic */ DonationTokenResponse copy$default(DonationTokenResponse donationTokenResponse, DonationTokenBean donationTokenBean, int i, Object obj) {
        if ((i & 1) != 0) {
            donationTokenBean = donationTokenResponse.data;
        }
        return donationTokenResponse.copy(donationTokenBean);
    }

    private Object[] getObjects() {
        return new Object[]{this.data};
    }

    public final DonationTokenResponse copy(DonationTokenBean donationTokenBean) {
        return new DonationTokenResponse(donationTokenBean);
    }

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

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

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

    public final DonationTokenBean getData() {
        return this.data;
    }

    public DonationTokenResponse(DonationTokenBean donationTokenBean) {
        this.data = donationTokenBean;
    }
}
