Skip to content

Commit

Permalink
Merge pull request mosip#330 from JanardhanBS-SyncByte/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gsasikumar authored Feb 1, 2024
2 parents 3c26168 + 9fa282d commit 56ad941
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2289,8 +2289,8 @@ private BioMetricsDto getBiometricData (String transactionId, CaptureRequestDto
}
}

biometricData.setRequestedScore(qualityRequestScore);
biometricData.setQualityScore(qualityScore);
biometricData.setRequestedScore(qualityRequestScore + "");
biometricData.setQualityScore(qualityScore + "");
biometricData.setTransactionId(transactionId);

ObjectMapper mapper = new ObjectMapper ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class BioMetricsDataDto {
private String registrationId;
private String transactionId;
private String timestamp;
private float requestedScore;
private float qualityScore;
private String requestedScore;
private String qualityScore;
/**
* @return the digitalId
*/
Expand Down Expand Up @@ -171,25 +171,25 @@ public void setTimestamp(String timestamp) {
/**
* @return the requestedScore
*/
public float getRequestedScore() {
public String getRequestedScore() {
return requestedScore;
}
/**
* @param requestedScore the requestedScore to set
*/
public void setRequestedScore(float requestedScore) {
public void setRequestedScore(String requestedScore) {
this.requestedScore = requestedScore;
}
/**
* @return the qualityScore
*/
public float getQualityScore() {
public String getQualityScore() {
return qualityScore;
}
/**
* @param qualityScore the qualityScore to set
*/
public void setQualityScore(float qualityScore) {
public void setQualityScore(String qualityScore) {
this.qualityScore = qualityScore;
}
public String getBioType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public class NewBioAuthDto {
private String bioValue;
private String transactionId;
private String timestamp;
private float requestedScore;
private float qualityScore;
private String requestedScore;
private String qualityScore;
private String domainUri;

/**
Expand Down Expand Up @@ -159,28 +159,28 @@ public void setTimestamp(String timestamp) {
/**
* @return the requestedScore
*/
public float getRequestedScore() {
public String getRequestedScore() {
return requestedScore;
}

/**
* @param requestedScore the requestedScore to set
*/
public void setRequestedScore(float requestedScore) {
public void setRequestedScore(String requestedScore) {
this.requestedScore = requestedScore;
}

/**
* @return the qualityScore
*/
public float getQualityScore() {
public String getQualityScore() {
return qualityScore;
}

/**
* @param qualityScore the qualityScore to set
*/
public void setQualityScore(float qualityScore) {
public void setQualityScore(String qualityScore) {
this.qualityScore = qualityScore;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public class NewBioDto {
private String bioValue;
private String transactionId;
private String timestamp;
private float requestedScore;
private float qualityScore;
private String requestedScore;
private String qualityScore;

/**
* @return the digitalId
Expand Down Expand Up @@ -144,28 +144,28 @@ public void setTimestamp(String timestamp) {
/**
* @return the requestedScore
*/
public float getRequestedScore() {
public String getRequestedScore() {
return requestedScore;
}

/**
* @param requestedScore the requestedScore to set
*/
public void setRequestedScore(float requestedScore) {
public void setRequestedScore(String requestedScore) {
this.requestedScore = requestedScore;
}

/**
* @return the qualityScore
*/
public float getQualityScore() {
public String getQualityScore() {
return qualityScore;
}

/**
* @param qualityScore the qualityScore to set
*/
public void setQualityScore(float qualityScore) {
public void setQualityScore(String qualityScore) {
this.qualityScore = qualityScore;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ private NewBioDto buildNewBioDto(BioMetricsDataDto bioMetricsData, String bioTyp
bioResponse.setDigitalId(getDigitalId(bioType));

bioResponse.setPurpose(bioMetricsData.getPurpose());
bioResponse.setRequestedScore(requestedScore);
bioResponse.setQualityScore(bioMetricsData.getQualityScore());
bioResponse.setRequestedScore(requestedScore + "");
bioResponse.setQualityScore(bioMetricsData.getQualityScore() + "");
bioResponse.setTimestamp(CryptoUtility.getTimestamp());
bioResponse.setTransactionId(transactionId);
return bioResponse;
Expand Down Expand Up @@ -452,8 +452,8 @@ private NewBioAuthDto buildAuthNewBioDto(BioMetricsDataDto bioMetricsData, Strin
//TODO - need to change, should handle based on deviceId
bioResponse.setDigitalId(getDigitalId(bioType));
bioResponse.setPurpose(bioMetricsData.getPurpose());
bioResponse.setRequestedScore(requestedScore);
bioResponse.setQualityScore(bioMetricsData.getQualityScore());
bioResponse.setRequestedScore(requestedScore + "");
bioResponse.setQualityScore(bioMetricsData.getQualityScore() + "");
bioResponse.setTransactionId(transactionId);
//TODO Domain URL need to be set
bioResponse.setDomainUri("");
Expand Down

0 comments on commit 56ad941

Please sign in to comment.