From 24c96183cf80387debb06c752026a7ae29f0df37 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sat, 5 Jun 2021 03:04:28 +0100 Subject: [PATCH] Add (Unfinished) MyWaifuWrapper.java This class will be abstracted away from Users and perform the API processing in the background --- .../org/goudham/me/api/MyWaifuWrapper.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/org/goudham/me/api/MyWaifuWrapper.java diff --git a/src/main/java/org/goudham/me/api/MyWaifuWrapper.java b/src/main/java/org/goudham/me/api/MyWaifuWrapper.java new file mode 100644 index 0000000..58b8494 --- /dev/null +++ b/src/main/java/org/goudham/me/api/MyWaifuWrapper.java @@ -0,0 +1,20 @@ +package org.goudham.me.api; + +import org.goudham.me.MyWaifuClient; + +/** + * Returns API information to {@link MyWaifuClient} + */ +public class MyWaifuWrapper { + private final String version = "1.0"; + private final String host = "https://mywaifulist.moe/api/v1/"; + private final String apiKey; + + /** + * Instantiates an instance of {@link MyWaifuWrapper} to retrieve API Information + * @param apiKey API Key to authorise API request + */ + public MyWaifuWrapper(String apiKey) { + this.apiKey = apiKey; + } +}