mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-24 05:22:22 +00:00
* UI responsive table fix * Background scanning for backends * Callback URL parameter to notify on scan results
31 lines
828 B
C#
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>();
|
|
}
|
|
} |