mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-23 13:02:24 +00:00
32 lines
866 B
C#
32 lines
866 B
C#
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>();
|
|
}
|
|
} |