-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: complete
FileAssetBaseDto
& FileAssetDto
- Loading branch information
1 parent
3827c87
commit 3ba73b2
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
26 changes: 24 additions & 2 deletions
26
Backend/src/BuildingBlocks/BuildingBlocks.Domain/Files/File/Dtos/FileAssetBaseDto.cs
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 |
---|---|---|
@@ -1,5 +1,27 @@ | ||
namespace BuildingBlocks.Domain.Files.File.Dtos; | ||
using System.Text.Json.Serialization; | ||
|
||
public class FileAssetBaseDto | ||
namespace BuildingBlocks.Domain.Files.File.Dtos; | ||
|
||
public class FileAssetBaseDto( | ||
string id, | ||
string name, | ||
float size, | ||
string type, | ||
string owner, | ||
string description, | ||
List<string> sharedWith) | ||
{ | ||
[JsonPropertyName("id")] public string? Id { get; } = id; | ||
|
||
[JsonPropertyName("name")] public string Name { get; } = name; | ||
|
||
[JsonPropertyName("size")] public float Size { get; } = size; | ||
|
||
[JsonPropertyName("type")] public string Type { get; } = type; | ||
|
||
[JsonPropertyName("owner")] public string Owner { get; } = owner; | ||
|
||
[JsonPropertyName("description")] public string Description { get; } = description; | ||
|
||
[JsonPropertyName("sharedWith")] public List<string> SharedWith { get; } = sharedWith; | ||
} |
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