九游游戏中心HD v4.6.8.1版本的 MD5 值为:78c397802cc5ffdcc7f5502ede90502e

以下内容为反编译后的 UserCouponInfo.java 源代码,内容仅作参考


package cn.ninegame.gamemanager.home.usercenter.model.pojo;

import android.os.Parcel;
import android.os.Parcelable;
public class UserCouponInfo implements Parcelable {
    public static final Parcelable.Creator<UserCouponInfo> CREATOR = new p();
    public static final String KEY_PROPERTY_COUPON = "voucherCount";
    public static final String KEY_PROPERTY_URL = "redirectUrl";
    public int count;
    public String redirectUrl;

    public UserCouponInfo(Parcel parcel, p pVar) {
        this(parcel);
    }

    public UserCouponInfo() {
        this.count = 0;
        this.redirectUrl = "https://quan.9game.cn/view/myVoucher.htm";
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.count);
        parcel.writeString(this.redirectUrl);
    }

    private UserCouponInfo(Parcel parcel) {
        this.count = 0;
        this.redirectUrl = "https://quan.9game.cn/view/myVoucher.htm";
        this.count = parcel.readInt();
        this.redirectUrl = parcel.readString();
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        UserCouponInfo userCouponInfo = (UserCouponInfo) obj;
        if (this.count != userCouponInfo.count) {
            return false;
        }
        if (this.redirectUrl != null) {
            if (this.redirectUrl.equals(userCouponInfo.redirectUrl)) {
                return true;
            }
        } else if (userCouponInfo.redirectUrl == null) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return (this.redirectUrl != null ? this.redirectUrl.hashCode() : 0) + (this.count * 31);
    }
}