Enum ResultCode
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ResultCode extends Enum<ResultCode>
Status code supplied by the home power plant for certain write operations.
- Since:
2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classResultCode.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntegerrscpCodeprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<ResultCode>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description SUCCESSOperation successful; rscpCode = 0
UNHANDLEDUnknown: Value ignored by home power plant???; rscpCode = 1
ACCESS_DENIEDMissing permission to change the value; rscpCode = 2
FORMAT_ERRORThe request value is invalid; rscpCode = 3
AGAINUnknown: Try again later??; rscpCode = 4
UNKNOWNFor all other codes; rscpCode = -1
-
Method Summary
Modifier and Type Method Description final ResultCodevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<ResultCode>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetRscpCode()final EnumEntries<ResultCode>getEntries()Status code supplied by the home power plant for certain write operations. -
-
Method Detail
-
valueOf
final ResultCode valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Parameters:
value- Code defined by E3DC
-
values
final Array<ResultCode> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getRscpCode
final Integer getRscpCode()
-
getEntries
final EnumEntries<ResultCode> getEntries()
Status code supplied by the home power plant for certain write operations.
- Since:
2.0
-
-
-
-