Package velox.api.layer1.agreement
Enum Class AgreementStatus
- All Implemented Interfaces:
Serializable,Comparable<AgreementStatus>,Constable
Represents the result status of an agreement acceptance request.
Each status carries an
isAccepted flag indicating whether the agreement
is considered accepted for the purpose of further processing.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe agreement was already accepted previously and has not expired.The previously accepted agreement has expired and the user declined to re-accept it.The user has just accepted the agreement in the current dialog session.The user has just declined the agreement in the current dialog session.A network error occurred while trying to process the agreement acceptance.An unexpected error occurred on server (e.g. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanIndicates whether this status represents a successful agreement acceptance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AgreementStatusReturns the enum constant of this class with the specified name.static AgreementStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JUST_ACCEPTED
The user has just accepted the agreement in the current dialog session. -
ALREADY_ACCEPTED
The agreement was already accepted previously and has not expired. -
JUST_DECLINED
The user has just declined the agreement in the current dialog session. -
EXPIRED_AND_DECLINED
The previously accepted agreement has expired and the user declined to re-accept it. -
NETWORK_ERROR
A network error occurred while trying to process the agreement acceptance. -
SERVER_ERROR
An unexpected error occurred on server (e.g. validation error, database error, etc.)
-
-
Field Details
-
isAccepted
public final boolean isAcceptedIndicates whether this status represents a successful agreement acceptance.trueif the agreement is accepted (either just now or previously),falseotherwise.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-