Skip to content

Commit

Permalink
Fix wrong status int value in Android SDK (#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnugraha authored Nov 21, 2023
1 parent 8bcc4bd commit 1ad038b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/kotlin/flwr/src/main/java/dev/flower/android/Typing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ typealias Properties = Map<String, Scalar>
* The `Code` class defines client status codes used in the application.
*/
enum class Code(val value: Int) {
OK(1),
GET_PROPERTIES_NOT_IMPLEMENTED(2),
GET_PARAMETERS_NOT_IMPLEMENTED(3),
FIT_NOT_IMPLEMENTED(4),
EVALUATE_NOT_IMPLEMENTED(5);
OK(0),
GET_PROPERTIES_NOT_IMPLEMENTED(1),
GET_PARAMETERS_NOT_IMPLEMENTED(2),
FIT_NOT_IMPLEMENTED(3),
EVALUATE_NOT_IMPLEMENTED(4);

companion object {
fun fromInt(value: Int): Code = values().first { it.value == value }
Expand Down

0 comments on commit 1ad038b

Please sign in to comment.