-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from JanardhanBS-SyncByte/develop-java21
[MOSIP-33145]
- Loading branch information
Showing
9 changed files
with
348 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 6 additions & 16 deletions
22
biosdk-services/src/main/java/io/mosip/biosdk/services/constants/ResponseStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,26 @@ | ||
package io.mosip.biosdk.services.constants; | ||
|
||
public enum ResponseStatus { | ||
|
||
SUCCESS(200, "OK"), | ||
INVALID_INPUT(401, "Invalid Input Parameter - %s"), | ||
MISSING_INPUT(402, "Missing Input Parameter - %s"), | ||
QUALITY_CHECK_FAILED(403, "Quality check of Biometric data failed"), | ||
POOR_DATA_QUALITY(406, "Data provided is of poor quality"), | ||
UNKNOWN_ERROR(500, "UNKNOWN_ERROR"); | ||
|
||
ResponseStatus(int statusCode, String statusMessage) { | ||
this.setStatusCode(statusCode); | ||
this.setStatusMessage(statusMessage); | ||
this.statusCode = statusCode; | ||
this.statusMessage = statusMessage; | ||
} | ||
|
||
private int statusCode; | ||
private String statusMessage; | ||
|
||
public int getStatusCode() { | ||
return statusCode; | ||
} | ||
public void setStatusCode(int statusCode) { | ||
this.statusCode = statusCode; | ||
} | ||
|
||
public String getStatusMessage() { | ||
return statusMessage; | ||
} | ||
|
||
public void setStatusMessage(String statusMessage) { | ||
this.statusMessage = statusMessage; | ||
} | ||
|
||
|
||
} | ||
} |
Oops, something went wrong.