= Classpath update

This commit is contained in:
Matthew Cech
2019-06-17 23:20:47 -07:00
parent 4d6444f8ad
commit d6aa2232c8
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -14,6 +14,6 @@
<classpathentry kind="lib" path="lib/twitter4j-core-4.0.7-javadoc.jar"/> <classpathentry kind="lib" path="lib/twitter4j-core-4.0.7-javadoc.jar"/>
<classpathentry kind="lib" path="lib/twitter4j-core-4.0.7.jar"/> <classpathentry kind="lib" path="lib/twitter4j-core-4.0.7.jar"/>
<classpathentry kind="lib" path="lib/luaj-jse-3.0.1.jar"/> <classpathentry kind="lib" path="lib/luaj-jse-3.0.1.jar"/>
<classpathentry kind="lib" path="F:/Shared/Coding/Java/workspace/ProKitty/lib/fuzzywuzzy-1.2.0.jar"/> <classpathentry kind="lib" path="lib/fuzzywuzzy-1.2.0.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
+13 -2
View File
@@ -2,12 +2,15 @@ package network;
import com.google.gson.Gson; import com.google.gson.Gson;
import network.NetworkE621.E621ResponseObject;
import utils.HTTPUtils;
// This class is designed to easily query and ask for responses from https://www.thecolorapi.com/. // This class is designed to easily query and ask for responses from https://www.thecolorapi.com/.
// Unlike some of the other networking classes, the query is much more wrapped. // Unlike some of the other networking classes, the query is much more wrapped.
@SuppressWarnings("unused") @SuppressWarnings("unused")
public class NetworkTheColorAPI public class NetworkTheColorAPI
{ {
private static final Gson jsonParser_ = new Gson(); private static final Gson jsonParser = new Gson();
private class tca_hsv private class tca_hsv
{ {
@@ -35,11 +38,19 @@ public class NetworkTheColorAPI
public String clean; // format xxxxxx, with no # public String clean; // format xxxxxx, with no #
} }
private class tca_obj public class ColorData
{ {
public tca_hex hex; public tca_hex hex;
public tca_rgb rgb; public tca_rgb rgb;
public tca_hsl hsl; public tca_hsl hsl;
public tca_hsv hsv; public tca_hsv hsv;
} }
public ColorData LookupHex()
{
String response = HTTPUtils.SendPOSTRequest("https://www.thecolorapi.com/id?hex=24B1E0");
// Use class evaluation on an array of the response imageObject to be able to hold multiple.
ColorData imageObj = jsonParser.fromJson(response, ColorData.class);
}
} }