Make constructor private & add setter for APIWrapper

pull/16/head
Hammy 3 years ago
parent e97075341a
commit 2785f88715

@ -32,7 +32,7 @@ import java.util.concurrent.Executor;
*
*/
public class MyWaifuClient {
private final APIWrapper APIWrapper;
private APIWrapper APIWrapper;
/**
* Creates an instance of {@link MyWaifuClient}
@ -42,7 +42,7 @@ public class MyWaifuClient {
* @param httpClient The underlying {@link HttpClient} to use for HttpRequests
*
*/
MyWaifuClient(@NotNull String apiKey, @NotNull HttpClient httpClient) {
private MyWaifuClient(@NotNull String apiKey, @NotNull HttpClient httpClient) {
APIWrapper = new APIWrapper(apiKey, httpClient);
}
@ -367,6 +367,10 @@ public class MyWaifuClient {
return APIWrapper.searchSeries(name);
}
void setAPIWrapper(me.goudham.APIWrapper APIWrapper) {
this.APIWrapper = APIWrapper;
}
/**
* Builder for {@link MyWaifuClient}
*

Loading…
Cancel
Save