Skip to content

Instantly share code, notes, and snippets.

@flipper83
Created August 27, 2014 16:05
Show Gist options
  • Save flipper83/25b7f04e74a6da90bd78 to your computer and use it in GitHub Desktop.
Save flipper83/25b7f04e74a6da90bd78 to your computer and use it in GitHub Desktop.
Domain user case with annotations.
public class SampleUserCaseJob implements SampleUserCase {
private final UserCaseHandler userCaseHandler;
@Inject
public GetDiscoverDestinationUserCaseJob(UserCaseHandler userCaseHandler) {
this.userCaseHandler = userCaseHandler;
}
@UserCase public void executeObtainDestination() {
Log.d("BORRAR","this is working with annotations");
userCaseHandler.publishResponse(new ForUIResponse());
}
@Override public void obtainDestinations() {
userCaseHandler.execute(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment