// Path: app/src/main/java/ooo/oxo/excited/model/Card.java
// public class Card implements Parcelable {
// 
//     public String id;
//     public String title;
//     public String cover;
//     public String ratio;
//     @SerializedName("head_icon")
//     public String headIcon;
//     @SerializedName("head_name")
//     public String headName;
//     public String source;
//     public int remains;
//     public int sum;
//     public int timestamp;
//     public boolean refined;
//     public String type;
//     public String description;
//     public String distance;
//     public String uuid;
//     public String link;
//     @SerializedName("author_name")
//     public String authorName;
// 
//     public Card() {
//     }
// 
//     protected Card(Parcel in) {
//         id = in.readString();
//         title = in.readString();
//         cover = in.readString();
//         ratio = in.readString();
//         headIcon = in.readString();
//         headName = in.readString();
//         source = in.readString();
//         remains = in.readInt();
//         sum = in.readInt();
//         timestamp = in.readInt();
//         type = in.readString();
//         description = in.readString();
//         distance = in.readString();
//         uuid = in.readString();
//         link = in.readString();
//         authorName = in.readString();
//     }
// 
//     public static final Creator<Card> CREATOR = new Creator<Card>() {
//         @Override
//         public Card createFromParcel(Parcel in) {
//             return new Card(in);
//         }
// 
//         @Override
//         public Card[] newArray(int size) {
//             return new Card[size];
//         }
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel parcel, int i) {
//         parcel.writeString(id);
//         parcel.writeString(title);
//         parcel.writeString(cover);
//         parcel.writeString(ratio);
//         parcel.writeString(headIcon);
//         parcel.writeString(headName);
//         parcel.writeString(source);
//         parcel.writeInt(remains);
//         parcel.writeInt(sum);
//         parcel.writeInt(timestamp);
//         parcel.writeString(type);
//         parcel.writeString(description);
//         parcel.writeString(distance);
//         parcel.writeString(uuid);
//         parcel.writeString(link);
//         parcel.writeString(authorName);
//     }
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/EmptyChannel.java
// public class EmptyChannel {
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Footer.java
// public class Footer {
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Music.java
// public class Music extends CardItem {
// 
//     public Music(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                  @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Picture.java
// public class Picture extends CardItem {
// 
//     public Picture(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                    @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Video.java
// public class Video extends CardItem {
// 
//     public Video(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                  @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Web.java
// public class Web extends CardItem {
// 
//     public Web(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String COVER_WEB = "cover_web";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String MUSIC = "music";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String PICTURE = "image";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String VIDEO = "video";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String WEB = "web";


import java.util.List;
import me.drakeet.multitype.Items;
import me.drakeet.multitype.MultiTypeAdapter;
import ooo.oxo.excited.model.Card;
import ooo.oxo.excited.provider.item.EmptyChannel;
import ooo.oxo.excited.provider.item.Footer;
import ooo.oxo.excited.provider.item.Music;
import ooo.oxo.excited.provider.item.Picture;
import ooo.oxo.excited.provider.item.Video;
import ooo.oxo.excited.provider.item.Web;
import static ooo.oxo.excited.MainActivity.COVER_WEB;
import static ooo.oxo.excited.MainActivity.MUSIC;
import static ooo.oxo.excited.MainActivity.PICTURE;
import static ooo.oxo.excited.MainActivity.VIDEO;
import static ooo.oxo.excited.MainActivity.WEB;
package ooo.oxo.excited.data;




/**
 * @author zsj
 */

public class DataObserver implements IData.IItems {

    private IItems iItems;

// Path: app/src/main/java/ooo/oxo/excited/model/Card.java
// public class Card implements Parcelable {
// 
//     public String id;
//     public String title;
//     public String cover;
//     public String ratio;
//     @SerializedName("head_icon")
//     public String headIcon;
//     @SerializedName("head_name")
//     public String headName;
//     public String source;
//     public int remains;
//     public int sum;
//     public int timestamp;
//     public boolean refined;
//     public String type;
//     public String description;
//     public String distance;
//     public String uuid;
//     public String link;
//     @SerializedName("author_name")
//     public String authorName;
// 
//     public Card() {
//     }
// 
//     protected Card(Parcel in) {
//         id = in.readString();
//         title = in.readString();
//         cover = in.readString();
//         ratio = in.readString();
//         headIcon = in.readString();
//         headName = in.readString();
//         source = in.readString();
//         remains = in.readInt();
//         sum = in.readInt();
//         timestamp = in.readInt();
//         type = in.readString();
//         description = in.readString();
//         distance = in.readString();
//         uuid = in.readString();
//         link = in.readString();
//         authorName = in.readString();
//     }
// 
//     public static final Creator<Card> CREATOR = new Creator<Card>() {
//         @Override
//         public Card createFromParcel(Parcel in) {
//             return new Card(in);
//         }
// 
//         @Override
//         public Card[] newArray(int size) {
//             return new Card[size];
//         }
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel parcel, int i) {
//         parcel.writeString(id);
//         parcel.writeString(title);
//         parcel.writeString(cover);
//         parcel.writeString(ratio);
//         parcel.writeString(headIcon);
//         parcel.writeString(headName);
//         parcel.writeString(source);
//         parcel.writeInt(remains);
//         parcel.writeInt(sum);
//         parcel.writeInt(timestamp);
//         parcel.writeString(type);
//         parcel.writeString(description);
//         parcel.writeString(distance);
//         parcel.writeString(uuid);
//         parcel.writeString(link);
//         parcel.writeString(authorName);
//     }
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/EmptyChannel.java
// public class EmptyChannel {
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Footer.java
// public class Footer {
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Music.java
// public class Music extends CardItem {
// 
//     public Music(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                  @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Picture.java
// public class Picture extends CardItem {
// 
//     public Picture(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                    @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Video.java
// public class Video extends CardItem {
// 
//     public Video(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                  @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/provider/item/Web.java
// public class Web extends CardItem {
// 
//     public Web(@NonNull Card card, int index, @NonNull MultiTypeAdapter adapter,
//                @NonNull List<Card> cards, boolean showPlus) {
//         super(card, index, adapter, cards, showPlus);
//     }
// 
// }
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String COVER_WEB = "cover_web";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String MUSIC = "music";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String PICTURE = "image";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String VIDEO = "video";
// 
// Path: app/src/main/java/ooo/oxo/excited/MainActivity.java
// public static final String WEB = "web";


// Path: app/src/main/java/ooo/oxo/excited/data/DataObserver.java
import java.util.List;
import me.drakeet.multitype.Items;
import me.drakeet.multitype.MultiTypeAdapter;
import ooo.oxo.excited.model.Card;
import ooo.oxo.excited.provider.item.EmptyChannel;
import ooo.oxo.excited.provider.item.Footer;
import ooo.oxo.excited.provider.item.Music;
import ooo.oxo.excited.provider.item.Picture;
import ooo.oxo.excited.provider.item.Video;
import ooo.oxo.excited.provider.item.Web;
import static ooo.oxo.excited.MainActivity.COVER_WEB;
import static ooo.oxo.excited.MainActivity.MUSIC;
import static ooo.oxo.excited.MainActivity.PICTURE;
import static ooo.oxo.excited.MainActivity.VIDEO;
import static ooo.oxo.excited.MainActivity.WEB;

package ooo.oxo.excited.data;




/**
 * @author zsj
 */

public class DataObserver implements IData.IItems {

    private IItems iItems;

    public DataObserver(IItems iItems) {