// Path: app/src/main/java/com/liuguangqiang/idaily/entity/StorySection.java
// public class StorySection extends BaseEntity {
// 
//     public int datetime;
// 
//     public StorySection(int datetime) {
//         this.datetime = datetime;
//     }
// 
//     @Override
//     public int getItemType() {
//         return StoriesAdapter.ITEM_SECTION;
//     }
// }
// 
// Path: app/src/main/java/com/liuguangqiang/idaily/adapter/StoriesAdapter.java
// public class StoriesAdapter extends BaseProviderMultiAdapter<BaseEntity> implements LoadMoreModule {
// 
//     public static final int ITEM_STORY = 0;
// 
//     public static final int ITEM_SECTION = 1;
// 
//     public StoriesAdapter(@Nullable List<BaseEntity> data) {
//         super(data);
//         addItemProvider(new StoryItemProvider());
//         addItemProvider(new SectionItemProvider());
//     }
// 
//     @Override
//     protected int getItemType(List<? extends BaseEntity> list, int i) {
//         if (getItem(i) instanceof StorySection) {
//             return ITEM_SECTION;
//         }
//         return ITEM_STORY;
//     }
// }


import androidx.databinding.DataBindingUtil;
import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.liuguangqiang.idaily.R;
import com.liuguangqiang.idaily.databinding.ItemStoryHeaderBinding;
import com.liuguangqiang.idaily.entity.StorySection;
import com.liuguangqiang.idaily.adapter.StoriesAdapter;
import org.jetbrains.annotations.NotNull;
package com.liuguangqiang.idaily.adapter.ItemProvider;




/**
 * Created by Eric at 2021/8/2
 */
public class SectionItemProvider<T> extends BaseItemProvider<StorySection> {

    @Override
    public int getItemViewType() {
// Path: app/src/main/java/com/liuguangqiang/idaily/entity/StorySection.java
// public class StorySection extends BaseEntity {
// 
//     public int datetime;
// 
//     public StorySection(int datetime) {
//         this.datetime = datetime;
//     }
// 
//     @Override
//     public int getItemType() {
//         return StoriesAdapter.ITEM_SECTION;
//     }
// }
// 
// Path: app/src/main/java/com/liuguangqiang/idaily/adapter/StoriesAdapter.java
// public class StoriesAdapter extends BaseProviderMultiAdapter<BaseEntity> implements LoadMoreModule {
// 
//     public static final int ITEM_STORY = 0;
// 
//     public static final int ITEM_SECTION = 1;
// 
//     public StoriesAdapter(@Nullable List<BaseEntity> data) {
//         super(data);
//         addItemProvider(new StoryItemProvider());
//         addItemProvider(new SectionItemProvider());
//     }
// 
//     @Override
//     protected int getItemType(List<? extends BaseEntity> list, int i) {
//         if (getItem(i) instanceof StorySection) {
//             return ITEM_SECTION;
//         }
//         return ITEM_STORY;
//     }
// }


// Path: app/src/main/java/com/liuguangqiang/idaily/adapter/ItemProvider/SectionItemProvider.java
import androidx.databinding.DataBindingUtil;
import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.liuguangqiang.idaily.R;
import com.liuguangqiang.idaily.databinding.ItemStoryHeaderBinding;
import com.liuguangqiang.idaily.entity.StorySection;
import com.liuguangqiang.idaily.adapter.StoriesAdapter;
import org.jetbrains.annotations.NotNull;

package com.liuguangqiang.idaily.adapter.ItemProvider;




/**
 * Created by Eric at 2021/8/2
 */
public class SectionItemProvider<T> extends BaseItemProvider<StorySection> {

    @Override
    public int getItemViewType() {
        return StoriesAdapter.ITEM_SECTION;