package autotest.moblab.rpc; import java.util.List; /** * Moblab RPC callback interfaces. */ public class MoblabRpcCallbacks { private MoblabRpcCallbacks() {} /** * Callback for network info fetch. */ public interface FetchNetworkInfoRpcCallback { public void onNetworkInfoFetched(NetworkInfo info); } /** * Callback for cloud storage info fetch. */ public interface FetchCloudStorageInfoCallback { public void onCloudStorageInfoFetched(CloudStorageInfo info); } /** * Callback for cloud storage info validation. */ public interface ValidateCloudStorageInfoCallback { public void onCloudStorageInfoValidated(OperationStatus status); } /** * Callback for wizard configuration info submission. */ public interface SubmitWizardConfigInfoCallback { public void onWizardConfigInfoSubmitted(OperationStatus status); } /** * Callback for network info fetch. */ public interface FetchVersionInfoCallback { public void onVersionInfoFetched(VersionInfo info); } /** * Callback for to get information about the connected DUT's. */ public interface FetchConnectedDutInfoCallback { public void onFetchConnectedDutInfoSubmitted(ConnectedDutInfo info); } /** * Generic callback to return a status and information string from a RPC call. */ public interface LogActionCompleteCallback { public void onLogActionComplete(boolean didSucceed, String information); } public interface FetchConnectedBoardsCallback { public void onFetchConnectedBoardsSubmitted(List boards); } public interface FetchConnectedPoolsCallback { public void onFetchConnectedPoolsSubmitted(List pools); } public interface FetchBuildsForBoardCallback { public void onFetchBuildsForBoardCallbackSubmitted(List builds); } public interface FetchFirmwareForBoardCallback { public void onFetchFirmwareForBoardCallbackSubmitted(List firmwareBuilds); } public interface RunSuiteCallback { public void onRunSuiteComplete(); } public interface FetchWifiInfoCallback { public void onWifiInfoFetched(WifiInfo info); } }