= Network Update

This commit is contained in:
Matthew Cech
2019-04-12 22:50:51 -07:00
parent 78ae35d36f
commit afc5176f43
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -1,7 +1,6 @@
package network; package network;
import com.google.gson.Gson; import com.google.gson.Gson;
import core.*;
import dataStructures.GenericImage; import dataStructures.GenericImage;
import offline.*; import offline.*;
import utils.*; import utils.*;
+2 -2
View File
@@ -1,8 +1,8 @@
package network; package network;
import com.google.gson.Gson; import com.google.gson.Gson;
import core.*;
import dataStructures.GenericImage; import dataStructures.GenericImage;
import offline.Ref;
import utils.*; import utils.*;
/** /**
@@ -25,7 +25,7 @@ public class NetworkE621
private static final Gson jsonParser_ = new Gson(); private static final Gson jsonParser_ = new Gson();
private static final String API_ROOT = "https://e621.net/post/index.json?"; private static final String API_ROOT = "https://e621.net/post/index.json?";
private static int maxSearchResults_ = 10; private static int maxSearchResults_ = 10;
private static String[] blacklist = {"theallseeingeye","scat","diaper","cub"}; private static String[] blacklist = Ref.e621Blacklist;
private class E621ResponseObject private class E621ResponseObject
{ {
// public varaibles matching the case and the type we want for JSON. // public varaibles matching the case and the type we want for JSON.