2020-10-25 16:11:36 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using MongoDB.Bson;
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
|
|
|
namespace MalwareMultiScan.Api.Data.Models
|
|
|
|
{
|
2020-10-29 16:09:56 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Scan result.
|
|
|
|
/// </summary>
|
2020-10-25 16:11:36 +02:00
|
|
|
public class ScanResult
|
|
|
|
{
|
2020-10-29 16:09:56 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Result id.
|
|
|
|
/// </summary>
|
2020-10-25 16:11:36 +02:00
|
|
|
[BsonId]
|
|
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
2020-10-29 16:09:56 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Result entries where key is backend id and value is <see cref="ScanResultEntry"/>.
|
|
|
|
/// </summary>
|
2020-10-26 17:06:29 +02:00
|
|
|
public Dictionary<string, ScanResultEntry> Results { get; set; } =
|
2020-10-25 16:11:36 +02:00
|
|
|
new Dictionary<string, ScanResultEntry>();
|
|
|
|
}
|
|
|
|
}
|