Syncshell Public & MCDF Share
This commit is contained in:
19
MareSynchronosAPI/Dto/McdfShare/McdfShareEntryDto.cs
Normal file
19
MareSynchronosAPI/Dto/McdfShare/McdfShareEntryDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MareSynchronos.API.Dto.McdfShare;
|
||||
|
||||
public class McdfShareEntryDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
public DateTime? UpdatedUtc { get; set; }
|
||||
public DateTime? ExpiresAtUtc { get; set; }
|
||||
public bool IsOwner { get; set; }
|
||||
public string OwnerUid { get; set; } = string.Empty;
|
||||
public string OwnerAlias { get; set; } = string.Empty;
|
||||
public int DownloadCount { get; set; }
|
||||
public List<string> AllowedIndividuals { get; set; } = [];
|
||||
public List<string> AllowedSyncshells { get; set; } = [];
|
||||
}
|
||||
15
MareSynchronosAPI/Dto/McdfShare/McdfSharePayloadDto.cs
Normal file
15
MareSynchronosAPI/Dto/McdfShare/McdfSharePayloadDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace MareSynchronos.API.Dto.McdfShare;
|
||||
|
||||
public class McdfSharePayloadDto
|
||||
{
|
||||
public Guid ShareId { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public byte[] CipherData { get; set; } = Array.Empty<byte>();
|
||||
public byte[] Nonce { get; set; } = Array.Empty<byte>();
|
||||
public byte[] Salt { get; set; } = Array.Empty<byte>();
|
||||
public byte[] Tag { get; set; } = Array.Empty<byte>();
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
public DateTime? ExpiresAtUtc { get; set; }
|
||||
}
|
||||
13
MareSynchronosAPI/Dto/McdfShare/McdfShareUpdateRequestDto.cs
Normal file
13
MareSynchronosAPI/Dto/McdfShare/McdfShareUpdateRequestDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MareSynchronos.API.Dto.McdfShare;
|
||||
|
||||
public class McdfShareUpdateRequestDto
|
||||
{
|
||||
public Guid ShareId { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public DateTime? ExpiresAtUtc { get; set; }
|
||||
public List<string> AllowedIndividuals { get; set; } = [];
|
||||
public List<string> AllowedSyncshells { get; set; } = [];
|
||||
}
|
||||
17
MareSynchronosAPI/Dto/McdfShare/McdfShareUploadRequestDto.cs
Normal file
17
MareSynchronosAPI/Dto/McdfShare/McdfShareUploadRequestDto.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MareSynchronos.API.Dto.McdfShare;
|
||||
|
||||
public class McdfShareUploadRequestDto
|
||||
{
|
||||
public Guid ShareId { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public byte[] CipherData { get; set; } = Array.Empty<byte>();
|
||||
public byte[] Nonce { get; set; } = Array.Empty<byte>();
|
||||
public byte[] Salt { get; set; } = Array.Empty<byte>();
|
||||
public byte[] Tag { get; set; } = Array.Empty<byte>();
|
||||
public DateTime? ExpiresAtUtc { get; set; }
|
||||
public List<string> AllowedIndividuals { get; set; } = [];
|
||||
public List<string> AllowedSyncshells { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user