forked from volodymyrsmirnov/MalwareMultiScan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScanResult.cs
32 lines (29 loc) · 866 Bytes
/
ScanResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using MalwareMultiScan.Shared.Message;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace MalwareMultiScan.Api.Data
{
/// <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="ScanResultMessage" />.
/// </summary>
public Dictionary<string, ScanResultMessage> Results { get; set; } =
new Dictionary<string, ScanResultMessage>();
}
}