package com.dl7.mvp.adapter.item; import android.support.annotation.IntDef; import com.dl7.mvp.api.bean.NewsInfo; import com.dl7.recycler.entity.MultiItemEntity; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Created by long on 2016/8/24. * 新闻复用列表项 */ public class NewsMultiItem extends MultiItemEntity { public static final int ITEM_TYPE_NORMAL = 1; public static final int ITEM_TYPE_PHOTO_SET = 2; private NewsInfo mNewsBean; public NewsMultiItem(@NewsItemType int itemType, NewsInfo newsBean) { super(itemType); mNewsBean = newsBean; } public NewsInfo getNewsBean() { return mNewsBean; } public void setNewsBean(NewsInfo newsBean) { mNewsBean = newsBean; } @Override public void setItemType(@NewsItemType int itemType) { super.setItemType(itemType); } @Retention(RetentionPolicy.SOURCE) @IntDef({ITEM_TYPE_NORMAL, ITEM_TYPE_PHOTO_SET}) public @interface NewsItemType {} }