Add folder sharing

This commit is contained in:
Josh-Heaps
2025-10-21 17:46:40 -06:00
parent 379bbb604e
commit d101a0f175
13 changed files with 1112 additions and 30 deletions
+35
View File
@@ -0,0 +1,35 @@
namespace Media.JoshHeaps.Net.Models;
public class FolderShare
{
public long Id { get; set; }
public long FolderId { get; set; }
public long OwnerUserId { get; set; }
public long SharedWithUserId { get; set; }
public string PermissionLevel { get; set; } = "read_only";
public bool IncludeSubfolders { get; set; } = true;
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}
public class FolderShareWithUser
{
public long Id { get; set; }
public long FolderId { get; set; }
public long OwnerUserId { get; set; }
public long SharedWithUserId { get; set; }
public string SharedWithUsername { get; set; } = string.Empty;
public string SharedWithEmail { get; set; } = string.Empty;
public string PermissionLevel { get; set; } = "read_only";
public DateTime CreatedAt { get; set; }
}
public class SharedFolderInfo
{
public long FolderId { get; set; }
public string FolderName { get; set; } = string.Empty;
public long OwnerUserId { get; set; }
public string OwnerUsername { get; set; } = string.Empty;
public string PermissionLevel { get; set; } = "read_only";
public DateTime SharedAt { get; set; }
}