public interface PromotionResult extends MutateResult
| Modifier and Type | Interface and Description |
|---|---|
static class |
PromotionResult.Status
The result status
|
GENERIC_FAILURE, GENERIC_SUCCESS| Modifier and Type | Method and Description |
|---|---|
@NonNull Optional<String> |
getGroupFrom()
Gets the name of the group the user was promoted from, if applicable.
|
@NonNull Optional<String> |
getGroupTo()
Gets the name of the group the user was promoted from, if applicable.
|
@NonNull PromotionResult.Status |
getStatus()
Gets the status of the result.
|
default boolean |
wasSuccess()
Gets if the operation which produced this result completed successfully.
|
asBoolean, wasFailure@NonNull PromotionResult.Status getStatus()
default boolean wasSuccess()
MutateResultwasSuccess in interface MutateResult@NonNull Optional<String> getGroupFrom()
Will only be present for results with a status of
PromotionResult.Status.SUCCESS.
@NonNull Optional<String> getGroupTo()
Will only be present for results with a status of
PromotionResult.Status.SUCCESS or PromotionResult.Status.ADDED_TO_FIRST_GROUP.
The value will also be set for results with the PromotionResult.Status.MALFORMED_TRACK status,
with this value marking the group which no longer exists.