package org.bean.jandan.common;

/**
 * Created by liuyulong@yixin.im on 2015/4/27.
 */
public interface C {

    interface URL {
        /*无聊图*/
        String PIC = "http://jandan.net/?oxwlxojflwblxbsapi=jandan.get_pic_comments";
        String OOXX = "http://jandan.net/?oxwlxojflwblxbsapi=jandan.get_ooxx_comments";

        int FIRST_PAGE = 1;
        String PARAM_PAGE = "page";
    }

    interface UNIT {
        int MB = 1024 * 1024;
    }

    interface DISK_CACHE {
        String CACHE_PATH = "image_cache";
        int MAX_CACHE_SIZE = 300 * UNIT.MB;
        int MAX_CACHE_SIZE_ON_LOW_DISK_SPACE = 100 * UNIT.MB;
        int MAX_CACHE_SIZE_ON_VERY_LOW_DISK_SPACE = 50 * UNIT.MB;
    }

    enum Directory {

        SHARE("share", false);

        public static final String APP_DIRECTORY_NAME = "BeanJD";

        String path;
        boolean storageByMD5;

        Directory(String path, boolean storageByMD5) {
            this.path = path;
            this.storageByMD5 = storageByMD5;
        }

        public String getStoragePath() {
            return "/" + path + "/";
        }

        public boolean isStorageByMD5() {
            return storageByMD5;
        }
    }
}

@@ -123,16 +123,17 @@
 e URL %7B%0A
+%0A
         
@@ -225,16 +225,33 @@
 mments%22;
+%0A%0A        /*%E5%A6%B9%E5%AD%90%E5%9B%BE*/
 %0A       
@@ -324,32 +324,823 @@
 oxx_comments%22;%0A%0A
+        /*%E8%AF%84%E8%AE%BA%E5%88%97%E8%A1%A8*/%0A        String URL_COMMENTS = %22http://jandan.net/?oxwlxojflwblxbsapi=get_post&include=comments&id=%22;%0A%0A        /*%E5%8F%91%E8%A1%A8%E8%AF%84%E8%AE%BA*/%0A        String URL_PUSH_COMMENT =%22http://jandan.net/?oxwlxojflwblxbsapi=respond.submit_comment%22;%0A%0A        /*%E6%96%B0%E9%B2%9C%E4%BA%8B%E5%88%97%E8%A1%A8*/%0A        String URL_FRESH_NEWS = %22http://jandan.net/?oxwlxojflwblxbsapi=get_recent_posts&include=url,date,tags,author,title,comment_count,custom_fields&custom_fields=thumb_c,views&dev=1%22;%0A%0A        /*%E6%96%B0%E9%B2%9C%E4%BA%8B%E8%AF%A6%E6%83%85*/%0A        String URL_DRESH_NEWS_DETAIL = %22http://i.jandan.net/?oxwlxojflwblxbsapi=get_post&include=content&id=%22;%0A%0A        /*%E6%AE%B5%E5%AD%90*/%0A        String URL_DUANZI = %22http://jandan.net/?oxwlxojflwblxbsapi=jandan.get_duan_comments%22;%0A%0A        /*%E8%A7%86%E9%A2%91*/%0A        String URL_VIDEOS = %22http://jandan.net/?oxwlxojflwblxbsapi=jandan.get_video_comments%22;%0A%0A
         int FIRS

add other url