Created
August 27, 2014 16:05
-
-
Save flipper83/25b7f04e74a6da90bd78 to your computer and use it in GitHub Desktop.
Domain user case with annotations.
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
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