aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Models
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/Models')
-rw-r--r--code/api/Models/FileSystemEntry.cs3
-rw-r--r--code/api/Models/StorageBlobId.cs11
2 files changed, 13 insertions, 1 deletions
diff --git a/code/api/Models/FileSystemEntry.cs b/code/api/Models/FileSystemEntry.cs
index 432f87c..cdb1213 100644
--- a/code/api/Models/FileSystemEntry.cs
+++ b/code/api/Models/FileSystemEntry.cs
@@ -4,6 +4,7 @@ public class FileSystemEntry
{
public Guid Id { get; set; }
public string Name { get; set; }
- public string ContentType { get; set; }
+ public string MimeType { get; set; }
public long SizeInBytes { get; set; }
+ public List<FileSystemEntry> Files { get; set; }
} \ No newline at end of file
diff --git a/code/api/Models/StorageBlobId.cs b/code/api/Models/StorageBlobId.cs
new file mode 100644
index 0000000..12a5157
--- /dev/null
+++ b/code/api/Models/StorageBlobId.cs
@@ -0,0 +1,11 @@
+namespace I2R.Storage.Api.Models;
+
+public struct StorageBlobId
+{
+ public Guid Id { get; set; }
+ public Guid Bucket { get; set; }
+
+ public override string ToString() {
+ return Bucket + ":" + Id;
+ }
+} \ No newline at end of file