Compare commits
1 Commits
0abb078c21
...
deb911cb0a
| Author | SHA1 | Date | |
|---|---|---|---|
|
deb911cb0a
|
@@ -10,6 +10,8 @@ public record GroupInfoDto(GroupData Group, UserData Owner, GroupPermissions Gro
|
|||||||
{
|
{
|
||||||
public GroupPermissions GroupPermissions { get; set; } = GroupPermissions;
|
public GroupPermissions GroupPermissions { get; set; } = GroupPermissions;
|
||||||
public UserData Owner { get; set; } = Owner;
|
public UserData Owner { get; set; } = Owner;
|
||||||
|
public bool AutoDetectVisible { get; set; }
|
||||||
|
public bool PasswordTemporarilyDisabled { get; set; }
|
||||||
|
|
||||||
public string OwnerUID => Owner.UID;
|
public string OwnerUID => Owner.UID;
|
||||||
public string? OwnerAlias => Owner.Alias;
|
public string? OwnerAlias => Owner.Alias;
|
||||||
|
|||||||
15
MareSynchronosAPI/Dto/Group/SyncshellDiscoveryEntryDto.cs
Normal file
15
MareSynchronosAPI/Dto/Group/SyncshellDiscoveryEntryDto.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using MessagePack;
|
||||||
|
|
||||||
|
namespace MareSynchronos.API.Dto.Group;
|
||||||
|
|
||||||
|
[MessagePackObject(keyAsPropertyName: true)]
|
||||||
|
public sealed record SyncshellDiscoveryEntryDto
|
||||||
|
{
|
||||||
|
public string GID { get; init; } = string.Empty;
|
||||||
|
public string? Alias { get; init; }
|
||||||
|
public string OwnerUID { get; init; } = string.Empty;
|
||||||
|
public string? OwnerAlias { get; init; }
|
||||||
|
public int MemberCount { get; init; }
|
||||||
|
public bool AutoAcceptPairs { get; init; }
|
||||||
|
public string? Description { get; init; }
|
||||||
|
}
|
||||||
11
MareSynchronosAPI/Dto/Group/SyncshellDiscoveryStateDto.cs
Normal file
11
MareSynchronosAPI/Dto/Group/SyncshellDiscoveryStateDto.cs
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
using MessagePack;
|
||||||
|
|
||||||
|
namespace MareSynchronos.API.Dto.Group;
|
||||||
|
|
||||||
|
[MessagePackObject(keyAsPropertyName: true)]
|
||||||
|
public sealed record SyncshellDiscoveryStateDto
|
||||||
|
{
|
||||||
|
public string GID { get; init; } = string.Empty;
|
||||||
|
public bool AutoDetectVisible { get; init; }
|
||||||
|
public bool PasswordTemporarilyDisabled { get; init; }
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
using MessagePack;
|
||||||
|
|
||||||
|
namespace MareSynchronos.API.Dto.Group;
|
||||||
|
|
||||||
|
[MessagePackObject(keyAsPropertyName: true)]
|
||||||
|
public sealed record SyncshellDiscoveryVisibilityRequestDto
|
||||||
|
{
|
||||||
|
public string GID { get; init; } = string.Empty;
|
||||||
|
public bool AutoDetectVisible { get; init; }
|
||||||
|
}
|
||||||
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