ResultService

Functions

Link copied to clipboard
suspend fun create(screenId: String, results: Results): Result<MessageResponse, Exception>

Create multiple new results for a screen.

suspend fun create(screenId: String, vendor: String, rule: String, type: SeverityType, description: String, source: Source, hash: String?, snapshots: List<String>?, screenshots: List<Bitmap>?, format: ImageFormat = ImageFormat.PNG): Result<ResultResource, Exception>

Create a new result for a screen.

Link copied to clipboard
suspend fun delete(resultId: String): Result<MessageResponse, Exception>

Delete a specific result

Link copied to clipboard
suspend fun downloadSnapshot(resultId: String): Result<ByteArray, Exception>

Download the snapshot of a specific result

Link copied to clipboard
suspend fun get(resultId: String): Result<ResultResource, Exception>

View details of a specific result

Link copied to clipboard
suspend fun list(screenId: String, parameters: ResultParameters? = null): Result<List<ResultResource>, Exception>

Get a list of all results belonging to the provided screenId

Link copied to clipboard
suspend fun update(resultId: String, vendor: String? = null, rule: String? = null, type: SeverityType? = null, description: String? = null, screenshots: List<Bitmap>? = null, format: ImageFormat = ImageFormat.PNG): Result<ResultResource, Exception>

Update a result.