17 lines
274 B
Java
17 lines
274 B
Java
package com.baeldung.sparkjava;
|
|
|
|
public enum StatusResponse {
|
|
SUCCESS("Success"), ERROR("Error");
|
|
|
|
final private String status;
|
|
|
|
StatusResponse(String status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public String getStatus() {
|
|
return status;
|
|
}
|
|
|
|
}
|