Search in sources :

Example 1 with AddOutputParametersBuilder

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);
}
Also used : Retrofit(retrofit2.Retrofit) AddOutputParametersBuilder(me.retrodaredevil.solarthing.pvoutput.data.AddOutputParametersBuilder) PVOutputService(me.retrodaredevil.solarthing.pvoutput.service.PVOutputService)

Aggregations

AddOutputParametersBuilder (me.retrodaredevil.solarthing.pvoutput.data.AddOutputParametersBuilder)1 PVOutputService (me.retrodaredevil.solarthing.pvoutput.service.PVOutputService)1 Retrofit (retrofit2.Retrofit)1