use of me.retrodaredevil.solarthing.pvoutput.data.AddOutputParametersBuilder in project solarthing by wildmountainfarms.
the class UploadTest method testRetrofit.
private static void testRetrofit(OkHttpClient client) throws IOException {
Retrofit retrofit = PVOutputRetrofitUtil.defaultBuilder().client(client).build();
PVOutputService service = retrofit.create(PVOutputService.class);
Call<String> call = service.addOutput(new AddOutputParametersBuilder(new SimpleDate(2020, 1, 30)).setGenerated(7000).build());
Response<String> response = call.execute();
System.out.println(response);
}
Aggregations