-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #392 from GDATASoftwareAG/dotnet/detections-filety…
…pe-mimetype Dotnet implementation of #390
- Loading branch information
Showing
5 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Vaas.Messages; | ||
|
||
public class Detection | ||
{ | ||
[JsonPropertyName("engine")] | ||
public int? Engine { get; init; } | ||
|
||
[JsonPropertyName("fileName")] | ||
public string FileName { get; init; } | ||
Check warning on line 11 in dotnet/Vaas/src/Vaas/Messages/Detection.cs GitHub Actions / Build & Test C# SDK (8.0.x)
|
||
|
||
[JsonPropertyName("virus")] | ||
public string Virus { get; init; } | ||
Check warning on line 14 in dotnet/Vaas/src/Vaas/Messages/Detection.cs GitHub Actions / Build & Test C# SDK (8.0.x)
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Vaas.Messages; | ||
|
||
public class LibMagic | ||
{ | ||
[JsonPropertyName("fileType")] | ||
public string FileType { get; init; } | ||
Check warning on line 8 in dotnet/Vaas/src/Vaas/Messages/LibMagic.cs GitHub Actions / Build & Test C# SDK (8.0.x)
|
||
|
||
[JsonPropertyName("mimeType")] | ||
public string MimeType { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters