add

fun add(vendor: String, rule: String, type: SeverityType, description: String, source: Source, hash: String?, elements: List<String>, snapshots: List<String>, screenshots: List<Bitmap>)

Adds a new Result and merges duplicate snapshots and screenshots.

Parameters

vendor

The slug associated with the VendorResource.

rule

The slug associated with the RuleResource.

type

The SeverityType of the result.

description

The description of the result.

source

The Source of the result.

hash

An optional hash value for the result.

elements

An array of JSON elements.

snapshots

An array of JSON snapshots.

screenshots

An array of Bitmap screenshots.