/* * Overchan Android (Meta Imageboard Client) * Copyright (C) 2014-2016 miku-nyan <https://github.com/miku-nyan> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package nya.miku.wishmaster.chans.kurisach; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.support.v4.content.res.ResourcesCompat; import nya.miku.wishmaster.R; import nya.miku.wishmaster.api.models.SimpleBoardModel; import nya.miku.wishmaster.api.util.ChanModels; import nya.miku.wishmaster.chans.nullchan.AbstractInstant0chan; public class KurisachModule extends AbstractInstant0chan { private static final String CHAN_NAME = "kurisa.ch"; private static final String DOMAIN = "kurisa.ch"; private static final SimpleBoardModel[] BOARDS = new SimpleBoardModel[] { ChanModels.obtainSimpleBoardModel(CHAN_NAME, "sg", "steins;gate", "Boards", true), ChanModels.obtainSimpleBoardModel(CHAN_NAME, "vg", "video;games", "Boards", false) }; public KurisachModule(SharedPreferences preferences, Resources resources) { super(preferences, resources); } public String getChanName() { return CHAN_NAME; } @Override public String getDisplayingName() { return "Kurisu (kurisa.ch)"; } @Override public Drawable getChanFavicon() { return ResourcesCompat.getDrawable(resources, R.drawable.favicon_clairews, null); } @Override protected String getUsingDomain() { return DOMAIN; } @Override protected boolean canHttps() { return true; } @Override protected boolean canCloudflare() { return true; } @Override protected SimpleBoardModel[] getBoardsList() { return BOARDS; } }