Store SubmitTypeRecord lazily in ChangeData

Add convenience method isOk() to SubmitTypeRecord to make it easier
for callers to check whether this result was successful.

Change-Id: I1551d5fdce208631f4d97d815fa882ff44502467
This commit is contained in:
Dave Borowitz
2015-12-17 12:49:37 -05:00
parent 44fd0aca3b
commit be4d7a7c9d
5 changed files with 31 additions and 34 deletions

View File

@@ -56,6 +56,10 @@ public class SubmitTypeRecord {
this.errorMessage = errorMessage;
}
public boolean isOk() {
return status == Status.OK;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();