Skip to content

Commit

Permalink
FE - add rawResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Hil authored and hleb-albau committed Jul 14, 2021
1 parent 3a9d6e1 commit 883436d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ext/process-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ export class Response {
images?: Images

lowLvlResponse: LowLvlResponse
rawResponse: ProcessResponse

constructor(original: ProcessResponse) {

const lowLvlResponse = new LowLvlResponse(original)
this.lowLvlResponse = lowLvlResponse
this.rawResponse = original

this.status = lowLvlResponse.statusResult()?.Status
const textResult = lowLvlResponse.textResult()
Expand Down Expand Up @@ -111,6 +113,7 @@ export class LowLvlResponse implements ProcessResponse {
ChipPage: RfidLocation
log?: string
passBackObject?: { [key: string]: any; };
morePagesAvailable?: number;

constructor(original: ProcessResponse) {
this.ContainerList = original.ContainerList
Expand All @@ -119,6 +122,7 @@ export class LowLvlResponse implements ProcessResponse {
this.ChipPage = original.ChipPage
this.log = original.log
this.passBackObject = original.passBackObject
this.morePagesAvailable = original.morePagesAvailable
}

public statusResult(): StatusResult | undefined {
Expand Down

0 comments on commit 883436d

Please sign in to comment.