Last active
October 27, 2015 00:58
-
-
Save Elrhino/a6f5c5ffb22d6f3fab04 to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onLaunch(String coordinates, String power) { | |
validateFields(coordinates, power); | |
dispatch.execute(resource.launch(coordinates, power), new AsyncCallback<Void>() { | |
@Override | |
public void onFailure(Throwable throwable) { | |
// Handle failure | |
} | |
@Override | |
public void onSuccess(Void aVoid) { | |
// Handle success | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment