package moe.banana.mmio.model;

import java.io.Serializable;
import java.util.Date;

import io.reactivex.Flowable;

@SuppressWarnings("unused")
public class Article implements Serializable {

    public enum Category {
        福利, Android, iOS, 休息视频, 拓展资源, 前端, all
    }

    public String _id;
    public String desc;
    public String url;
    public String source;
    public Category type;
    public String who;
    public boolean used;
    public Date createdAt;
    public Date publishedAt;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Article article = (Article) o;

        return _id.equals(article._id);
    }

    @Override
    public int hashCode() {
        return _id.hashCode();
    }

    public static Flowable<Article> stream(Category category) {
        // TODO how to stream?
        return null;
    }
}

@@ -253,16 +253,21 @@
 %E5%B1%95%E8%B5%84%E6%BA%90, %E5%89%8D%E7%AB%AF,
+ %E7%9E%8E%E6%8E%A8%E8%8D%90,
  all%0A   

Add new article category