Volodymyr Smirnov ee071811e8 version 1.1L
* UI responsive table fix
* Background scanning for backends
* Callback URL parameter to notify on scan results
2020-10-30 11:20:08 +02:00

31 lines
828 B
C#

using System;
using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace MalwareMultiScan.Api.Data.Models
{
/// <summary>
/// Scan result.
/// </summary>
public class ScanResult
{
/// <summary>
/// Result id.
/// </summary>
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
/// <summary>
/// Optional callback URL.
/// </summary>
public Uri CallbackUrl { get; set; }
/// <summary>
/// Result entries where key is backend id and value is <see cref="ScanResultEntry" />.
/// </summary>
public Dictionary<string, ScanResultEntry> Results { get; set; } =
new Dictionary<string, ScanResultEntry>();
}
}