// ItemPage.java
package com.idle.wall.idleitem;

public class ItemIdlePage {

    private String imageUrl;
    private String name;
        private int imageResId;
        public ItemIdlePage(int imageResId, String name) {
            this.imageResId = imageResId;
            this.name = name;
            this.imageUrl = ""; // 空URL避免空指针
        }

        // 构造方法2：兼容原有URL逻辑
        public ItemIdlePage(String imageUrl, String name) {
            this.imageUrl = imageUrl;
            this.name = name;
            this.imageResId = 0; // 默认无资源ID
        }

        public int getImageResId() {
            return imageResId;
        }

        public void setImageResId(int imageResId) {
            this.imageResId = imageResId;
        }
    public String getImageUrl() {
        return imageUrl;
    }

    public String getName() {
        return name;
    }
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
}