32 lines
866 B
C#
Raw Permalink Normal View History

using System;
using System.Collections.Generic;
using MalwareMultiScan.Shared.Message;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace MalwareMultiScan.Api.Data
{
2020-10-29 16:09:56 +02:00
/// <summary>
/// Scan result.
/// </summary>
public class ScanResult
{
2020-10-29 16:09:56 +02:00
/// <summary>
/// Result id.
/// </summary>
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
2020-10-29 16:09:56 +02:00
/// <summary>
/// Optional callback URL.
/// </summary>
public Uri CallbackUrl { get; set; }
/// <summary>
/// Result entries where key is backend id and value is <see cref="ScanResultMessage" />.
2020-10-29 16:09:56 +02:00
/// </summary>
public Dictionary<string, ScanResultMessage> Results { get; set; } =
new Dictionary<string, ScanResultMessage>();
}
}