Skip to content

Commit

Permalink
feat: complete FileAssetBaseDto & FileAssetDto
Browse files Browse the repository at this point in the history
  • Loading branch information
HunorTotBagi committed Feb 15, 2025
1 parent 3827c87 commit 3ba73b2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ public class FileAssetDto(
string type,
string owner,
string description,
List<string> sharedWith);
List<string> sharedWith) : FileAssetBaseDto(id, name, size, type, owner, description, sharedWith)
{

}

0 comments on commit 3ba73b2

Please sign in to comment.