Created
April 14, 2017 15:49
-
-
Save benigumocom/4deb5aec88b2bf09c1a44ac3cc070be3 to your computer and use it in GitHub Desktop.
Reactive State 3
This file contains hidden or 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
final class SubmitUiModel { | |
final boolean inProgress; | |
final boolean success; | |
final String errorMessage; | |
private SubmitUiModel( | |
boolean inProgress, boolean success, String errorMessage) { | |
// ... | |
} | |
static SubmitUiModel inProgress() { /* ... */ } | |
static SubmitUiModel success() { /* ... */ } | |
static SubmitUiModel failure(String errorMessage) { /* ... */ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment