-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testEventId to test result response (#7234)
- Loading branch information
Showing
4 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
23 changes: 15 additions & 8 deletions
23
backend/src/main/java/gov/cdc/usds/simplereport/api/model/AddTestResultResponse.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,29 +1,36 @@ | ||
package gov.cdc.usds.simplereport.api.model; | ||
|
||
import gov.cdc.usds.simplereport.db.model.TestOrder; | ||
import java.util.UUID; | ||
|
||
public class AddTestResultResponse { | ||
private TestOrder _testOrder; | ||
private Boolean _deliveryStatus; | ||
private TestOrder testOrder; | ||
private Boolean deliveryStatus; | ||
private UUID testEventId; | ||
|
||
public AddTestResultResponse(TestOrder testOrder, Boolean deliveryStatus) { | ||
this._testOrder = testOrder; | ||
this._deliveryStatus = deliveryStatus; | ||
this.testOrder = testOrder; | ||
this.deliveryStatus = deliveryStatus; | ||
this.testEventId = testOrder.getTestEvent().getInternalId(); | ||
} | ||
|
||
public AddTestResultResponse(TestOrder testOrder) { | ||
this._testOrder = testOrder; | ||
this.testOrder = testOrder; | ||
} | ||
|
||
public TestOrder getTestOrder() { | ||
return this._testOrder; | ||
return this.testOrder; | ||
} | ||
|
||
public ApiTestOrder getTestResult() { | ||
return new ApiTestOrder(_testOrder); | ||
return new ApiTestOrder(testOrder); | ||
} | ||
|
||
public Boolean getDeliverySuccess() { | ||
return _deliveryStatus; | ||
return deliveryStatus; | ||
} | ||
|
||
public UUID getTestEventId() { | ||
return testEventId; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ mutation SubmitQueueItem( | |
internalId | ||
} | ||
deliverySuccess | ||
testEventId | ||
} | ||
} | ||
|
||
|
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