stringToState static method
Implementation
static RSAStates stringToState(String id) {
if (id == RSA.stateToString(RSAStates.waitingForMechanicResponse)) {
return RSAStates.waitingForMechanicResponse;
} else if (id == RSA.stateToString(RSAStates.waitingForProviderResponse)) {
return RSAStates.waitingForProviderResponse;
} else if (id == RSA.stateToString(RSAStates.requestingRSA)) {
return RSAStates.requestingRSA;
} else if (id == RSA.stateToString(RSAStates.failedToRequestRSA)) {
return RSAStates.failedToRequestRSA;
} else if (id == RSA.stateToString(RSAStates.created)) {
return RSAStates.created;
} else if (id == RSA.stateToString(RSAStates.done)) {
return RSAStates.done;
} else if (id == RSA.stateToString(RSAStates.mechanicConfirmed)) {
return RSAStates.mechanicConfirmed;
} else if (id == RSA.stateToString(RSAStates.providerConfirmed)) {
return RSAStates.providerConfirmed;
} else if (id == RSA.stateToString(RSAStates.waitingForArrival)) {
return RSAStates.waitingForArrival;
} else if (id == RSA.stateToString(RSAStates.confirmedArrival)) {
return RSAStates.confirmedArrival;
}
return RSAStates.canceled;
}