-
Notifications
You must be signed in to change notification settings - Fork 11
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 #387 from GDATASoftwareAG/typescript/detections-mi…
…metypes-filetypes add libmagic & detections in response
- Loading branch information
Showing
6 changed files
with
39 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { JsonProperty, JsonObject } from "typescript-json-serializer"; | ||
|
||
@JsonObject() | ||
export class Detection { | ||
public constructor( | ||
@JsonProperty() public engine: number, | ||
@JsonProperty() public fileName: string, | ||
@JsonProperty() public virus: string, | ||
) {} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { JsonProperty, JsonObject } from "typescript-json-serializer"; | ||
|
||
@JsonObject() | ||
export class LibMagic { | ||
public constructor( | ||
@JsonProperty() public fileType: number, | ||
@JsonProperty() public mimeType: string, | ||
) {} | ||
} |
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,10 +1,14 @@ | ||
import { JsonProperty, JsonObject } from "typescript-json-serializer"; | ||
import { Verdict } from "../Verdict"; | ||
import { Detection } from "./detection"; | ||
import { LibMagic } from "./lib_magic"; | ||
|
||
@JsonObject() | ||
export class VaasVerdict { | ||
public constructor( | ||
@JsonProperty() public sha256: string, | ||
@JsonProperty() public verdict: Verdict, | ||
@JsonProperty() public detections: Detection[] | undefined, | ||
@JsonProperty() public libMagic: LibMagic | undefined, | ||
) {} | ||
} |
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