Aggiunto retrievePartitaMagSyncronized in MagazzinoRESTConsumer
This commit is contained in:
parent
b0272cd9e0
commit
230a32139d
@ -90,6 +90,19 @@ public class MagazzinoRESTConsumer extends _BaseRESTConsumer {
|
||||
});
|
||||
}
|
||||
|
||||
public MtbPartitaMag retrievePartitaMagSyncronized(String partitaMag, String codMart, RunnableArgs<Exception> onFailed) throws Exception {
|
||||
MagazzinoRESTConsumerService service = RESTBuilder.getService(MagazzinoRESTConsumerService.class);
|
||||
Response<ServiceRESTResponse<MtbPartitaMag>> response = service.retrievePartitaMag(codMart, partitaMag)
|
||||
.execute();
|
||||
|
||||
if(response.isSuccessful()) {
|
||||
return analyzeAnswer(response, "retrievePartitaMag");
|
||||
} else {
|
||||
//TO BE TESTED
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void retrievePartitaMag(String partitaMag, String codMart, RunnableArgs<MtbPartitaMag> onComplete, RunnableArgs<Exception> onFailed){
|
||||
MagazzinoRESTConsumerService service = RESTBuilder.getService(MagazzinoRESTConsumerService.class);
|
||||
service.retrievePartitaMag(codMart, partitaMag)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user