1 //******************************************************************
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
8 import java.io.Serializable;
12 * When a request or command is issued to a resource, an OCResourceResultHandler object must be
13 * passed as a parameter to handle the callback(s).
16 public interface OCResourceResultHandler extends Serializable {
19 * The OC service calls this repeatedly until completed() or failed() is called.
21 * @param serviceURI - The URI of the reporting service.
22 * @param resources - The list of resources found on the remote service.
24 void onResourcesFound(String serviceURI, OCResource[] resources);
27 * Called after all of the found resource(s) are reported.
32 * Called if a failure occurred. No resources will be reported after this callback.
34 * @param throwable - The error that caused this callback sequence to fail.
36 void onFailed(Throwable throwable);