Add files via upload
This commit is contained in:
9
LightlessSyncAPI/Dto/CharaData/AccessTypeDto.cs
Normal file
9
LightlessSyncAPI/Dto/CharaData/AccessTypeDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace LightlessSync.API.Dto.CharaData;
|
||||
|
||||
public enum AccessTypeDto
|
||||
{
|
||||
Individuals,
|
||||
ClosePairs,
|
||||
AllPairs,
|
||||
Public
|
||||
}
|
||||
14
LightlessSyncAPI/Dto/CharaData/CharaDataDownloadDto.cs
Normal file
14
LightlessSyncAPI/Dto/CharaData/CharaDataDownloadDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.CharaData;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record CharaDataDownloadDto(string Id, UserData Uploader) : CharaDataDto(Id, Uploader)
|
||||
{
|
||||
public string GlamourerData { get; init; } = string.Empty;
|
||||
public string CustomizeData { get; init; } = string.Empty;
|
||||
public string ManipulationData { get; set; } = string.Empty;
|
||||
public List<GamePathEntry> FileGamePaths { get; init; } = [];
|
||||
public List<GamePathEntry> FileSwaps { get; init; } = [];
|
||||
}
|
||||
9
LightlessSyncAPI/Dto/CharaData/CharaDataDto.cs
Normal file
9
LightlessSyncAPI/Dto/CharaData/CharaDataDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using LightlessSync.API.Data;
|
||||
|
||||
namespace LightlessSync.API.Dto.CharaData;
|
||||
|
||||
public record CharaDataDto(string Id, UserData Uploader)
|
||||
{
|
||||
public string Description { get; init; } = string.Empty;
|
||||
public DateTime UpdatedDate { get; init; }
|
||||
}
|
||||
88
LightlessSyncAPI/Dto/CharaData/CharaDataFullDto.cs
Normal file
88
LightlessSyncAPI/Dto/CharaData/CharaDataFullDto.cs
Normal file
@@ -0,0 +1,88 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.CharaData;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record CharaDataFullDto(string Id, UserData Uploader) : CharaDataDto(Id, Uploader)
|
||||
{
|
||||
public DateTime CreatedDate { get; init; }
|
||||
public DateTime ExpiryDate { get; set; }
|
||||
public string GlamourerData { get; set; } = string.Empty;
|
||||
public string CustomizeData { get; set; } = string.Empty;
|
||||
public string ManipulationData { get; set; } = string.Empty;
|
||||
public int DownloadCount { get; set; } = 0;
|
||||
public List<UserData> AllowedUsers { get; set; } = [];
|
||||
public List<GroupData> AllowedGroups { get; set; } = [];
|
||||
public List<GamePathEntry> FileGamePaths { get; set; } = [];
|
||||
public List<GamePathEntry> FileSwaps { get; set; } = [];
|
||||
public List<GamePathEntry> OriginalFiles { get; set; } = [];
|
||||
public AccessTypeDto AccessType { get; set; }
|
||||
public ShareTypeDto ShareType { get; set; }
|
||||
public List<PoseEntry> PoseData { get; set; } = [];
|
||||
}
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GamePathEntry(string HashOrFileSwap, string GamePath);
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record PoseEntry(long? Id)
|
||||
{
|
||||
public string? Description { get; set; } = string.Empty;
|
||||
public string? PoseData { get; set; } = string.Empty;
|
||||
public WorldData? WorldData { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public record struct WorldData
|
||||
{
|
||||
[Key(0)] public LocationInfo LocationInfo { get; set; }
|
||||
[Key(1)] public float PositionX { get; set; }
|
||||
[Key(2)] public float PositionY { get; set; }
|
||||
[Key(3)] public float PositionZ { get; set; }
|
||||
[Key(4)] public float RotationX { get; set; }
|
||||
[Key(5)] public float RotationY { get; set; }
|
||||
[Key(6)] public float RotationZ { get; set; }
|
||||
[Key(7)] public float RotationW { get; set; }
|
||||
[Key(8)] public float ScaleX { get; set; }
|
||||
[Key(9)] public float ScaleY { get; set; }
|
||||
[Key(10)] public float ScaleZ { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public record struct LocationInfo
|
||||
{
|
||||
[Key(0)] public uint ServerId { get; set; }
|
||||
[Key(1)] public uint MapId { get; set; }
|
||||
[Key(2)] public uint TerritoryId { get; set; }
|
||||
[Key(3)] public uint DivisionId { get; set; }
|
||||
[Key(4)] public uint WardId { get; set; }
|
||||
[Key(5)] public uint HouseId { get; set; }
|
||||
[Key(6)] public uint RoomId { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public record struct PoseData
|
||||
{
|
||||
[Key(0)] public bool IsDelta { get; set; }
|
||||
[Key(1)] public Dictionary<string, BoneData> Bones { get; set; }
|
||||
[Key(2)] public Dictionary<string, BoneData> MainHand { get; set; }
|
||||
[Key(3)] public Dictionary<string, BoneData> OffHand { get; set; }
|
||||
[Key(4)] public BoneData ModelDifference { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public record struct BoneData
|
||||
{
|
||||
[Key(0)] public bool Exists { get; set; }
|
||||
[Key(1)] public float PositionX { get; set; }
|
||||
[Key(2)] public float PositionY { get; set; }
|
||||
[Key(3)] public float PositionZ { get; set; }
|
||||
[Key(4)] public float RotationX { get; set; }
|
||||
[Key(5)] public float RotationY { get; set; }
|
||||
[Key(6)] public float RotationZ { get; set; }
|
||||
[Key(7)] public float RotationW { get; set; }
|
||||
[Key(8)] public float ScaleX { get; set; }
|
||||
[Key(9)] public float ScaleY { get; set; }
|
||||
[Key(10)] public float ScaleZ { get; set; }
|
||||
}
|
||||
11
LightlessSyncAPI/Dto/CharaData/CharaDataMetaInfoDto.cs
Normal file
11
LightlessSyncAPI/Dto/CharaData/CharaDataMetaInfoDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.CharaData;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record CharaDataMetaInfoDto(string Id, UserData Uploader) : CharaDataDto(Id, Uploader)
|
||||
{
|
||||
public bool CanBeDownloaded { get; init; }
|
||||
public List<PoseEntry> PoseData { get; set; } = [];
|
||||
}
|
||||
20
LightlessSyncAPI/Dto/CharaData/CharaDataUpdateDto.cs
Normal file
20
LightlessSyncAPI/Dto/CharaData/CharaDataUpdateDto.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.CharaData;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record CharaDataUpdateDto(string Id)
|
||||
{
|
||||
public string? Description { get; set; }
|
||||
public DateTime? ExpiryDate { get; set; }
|
||||
public string? GlamourerData { get; set; }
|
||||
public string? CustomizeData { get; set; }
|
||||
public string? ManipulationData { get; set; }
|
||||
public List<string>? AllowedUsers { get; set; }
|
||||
public List<string>? AllowedGroups { get; set; }
|
||||
public List<GamePathEntry>? FileGamePaths { get; set; }
|
||||
public List<GamePathEntry>? FileSwaps { get; set; }
|
||||
public AccessTypeDto? AccessType { get; set; }
|
||||
public ShareTypeDto? ShareType { get; set; }
|
||||
public List<PoseEntry>? Poses { get; set; }
|
||||
}
|
||||
7
LightlessSyncAPI/Dto/CharaData/ShareTypeDto.cs
Normal file
7
LightlessSyncAPI/Dto/CharaData/ShareTypeDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace LightlessSync.API.Dto.CharaData;
|
||||
|
||||
public enum ShareTypeDto
|
||||
{
|
||||
Private,
|
||||
Shared
|
||||
}
|
||||
27
LightlessSyncAPI/Dto/ConnectionDto.cs
Normal file
27
LightlessSyncAPI/Dto/ConnectionDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record ConnectionDto(UserData User)
|
||||
{
|
||||
public Version CurrentClientVersion { get; set; } = new(0, 0, 0);
|
||||
public int ServerVersion { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
public bool IsModerator { get; set; }
|
||||
public ServerInfo ServerInfo { get; set; } = new();
|
||||
public DefaultPermissionsDto DefaultPreferredPermissions { get; set; } = new();
|
||||
}
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record ServerInfo
|
||||
{
|
||||
public string ShardName { get; set; } = string.Empty;
|
||||
public int MaxGroupUserCount { get; set; }
|
||||
public int MaxGroupsCreatedByUser { get; set; }
|
||||
public int MaxGroupsJoinedByUser { get; set; }
|
||||
public Uri FileServerAddress { get; set; } = new Uri("http://nonemptyuri");
|
||||
public int MaxCharaData { get; set; }
|
||||
public int MaxCharaDataVanity { get; set; }
|
||||
}
|
||||
15
LightlessSyncAPI/Dto/DefaultPermissionsDto.cs
Normal file
15
LightlessSyncAPI/Dto/DefaultPermissionsDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record DefaultPermissionsDto
|
||||
{
|
||||
public bool DisableIndividualAnimations { get; set; } = false;
|
||||
public bool DisableIndividualSounds { get; set; } = false;
|
||||
public bool DisableIndividualVFX { get; set; } = false;
|
||||
public bool DisableGroupAnimations { get; set; } = false;
|
||||
public bool DisableGroupSounds { get; set; } = false;
|
||||
public bool DisableGroupVFX { get; set; } = false;
|
||||
public bool IndividualIsSticky { get; set; } = true;
|
||||
}
|
||||
15
LightlessSyncAPI/Dto/Files/DownloadFileDto.cs
Normal file
15
LightlessSyncAPI/Dto/Files/DownloadFileDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Files;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record DownloadFileDto : ITransferFileDto
|
||||
{
|
||||
public bool FileExists { get; set; } = true;
|
||||
public string Hash { get; set; } = string.Empty;
|
||||
public string Url { get; set; } = string.Empty;
|
||||
public long Size { get; set; } = 0;
|
||||
public bool IsForbidden { get; set; } = false;
|
||||
public string ForbiddenBy { get; set; } = string.Empty;
|
||||
public long RawSize { get; set; } = 0;
|
||||
}
|
||||
13
LightlessSyncAPI/Dto/Files/FilesSendDto.cs
Normal file
13
LightlessSyncAPI/Dto/Files/FilesSendDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LightlessSync.API.Dto.Files;
|
||||
|
||||
public class FilesSendDto
|
||||
{
|
||||
public List<string> FileHashes { get; set; } = new();
|
||||
public List<string> UIDs { get; set; } = new();
|
||||
}
|
||||
8
LightlessSyncAPI/Dto/Files/ITransferFileDto.cs
Normal file
8
LightlessSyncAPI/Dto/Files/ITransferFileDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace LightlessSync.API.Dto.Files;
|
||||
|
||||
public interface ITransferFileDto
|
||||
{
|
||||
string ForbiddenBy { get; set; }
|
||||
string Hash { get; set; }
|
||||
bool IsForbidden { get; set; }
|
||||
}
|
||||
11
LightlessSyncAPI/Dto/Files/UploadFileDto.cs
Normal file
11
LightlessSyncAPI/Dto/Files/UploadFileDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Files;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UploadFileDto : ITransferFileDto
|
||||
{
|
||||
public string Hash { get; set; } = string.Empty;
|
||||
public bool IsForbidden { get; set; } = false;
|
||||
public string ForbiddenBy { get; set; } = string.Empty;
|
||||
}
|
||||
19
LightlessSyncAPI/Dto/Group/BannedGroupUserDto.cs
Normal file
19
LightlessSyncAPI/Dto/Group/BannedGroupUserDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record BannedGroupUserDto : GroupPairDto
|
||||
{
|
||||
public BannedGroupUserDto(GroupData group, UserData user, string reason, DateTime bannedOn, string bannedBy) : base(group, user)
|
||||
{
|
||||
Reason = reason;
|
||||
BannedOn = bannedOn;
|
||||
BannedBy = bannedBy;
|
||||
}
|
||||
|
||||
public string Reason { get; set; }
|
||||
public DateTime BannedOn { get; set; }
|
||||
public string BannedBy { get; set; }
|
||||
}
|
||||
13
LightlessSyncAPI/Dto/Group/GroupDto.cs
Normal file
13
LightlessSyncAPI/Dto/Group/GroupDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupDto(GroupData Group)
|
||||
{
|
||||
public GroupData Group { get; set; } = Group;
|
||||
public string GID => Group.GID;
|
||||
public string? GroupAlias => Group.Alias;
|
||||
public string GroupAliasOrGID => Group.AliasOrGID;
|
||||
}
|
||||
14
LightlessSyncAPI/Dto/Group/GroupFullInfoDto.cs
Normal file
14
LightlessSyncAPI/Dto/Group/GroupFullInfoDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupFullInfoDto(GroupData Group, UserData Owner, GroupPermissions GroupPermissions,
|
||||
GroupUserPreferredPermissions GroupUserPermissions, GroupPairUserInfo GroupUserInfo,
|
||||
Dictionary<string, GroupPairUserInfo> GroupPairUserInfos) : GroupInfoDto(Group, Owner, GroupPermissions)
|
||||
{
|
||||
public GroupUserPreferredPermissions GroupUserPermissions { get; set; } = GroupUserPermissions;
|
||||
public GroupPairUserInfo GroupUserInfo { get; set; } = GroupUserInfo;
|
||||
}
|
||||
18
LightlessSyncAPI/Dto/Group/GroupInfoDto.cs
Normal file
18
LightlessSyncAPI/Dto/Group/GroupInfoDto.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupInfoDto(GroupData Group, UserData Owner, GroupPermissions GroupPermissions) : GroupDto(Group)
|
||||
{
|
||||
public GroupPermissions GroupPermissions { get; set; } = GroupPermissions;
|
||||
public UserData Owner { get; set; } = Owner;
|
||||
|
||||
public string OwnerUID => Owner.UID;
|
||||
public string? OwnerAlias => Owner.Alias;
|
||||
public string OwnerAliasOrUID => Owner.AliasOrUID;
|
||||
}
|
||||
|
||||
public record GroupJoinInfoDto(GroupData Group, UserData Owner, GroupPermissions GroupPermissions, bool Success) : GroupInfoDto(Group, Owner, GroupPermissions);
|
||||
11
LightlessSyncAPI/Dto/Group/GroupJoinDto.cs
Normal file
11
LightlessSyncAPI/Dto/Group/GroupJoinDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupPasswordDto(GroupData Group, string Password) : GroupDto(Group);
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupJoinDto(GroupData Group, string Password, GroupUserPreferredPermissions GroupUserPreferredPermissions) : GroupPasswordDto(Group, Password);
|
||||
12
LightlessSyncAPI/Dto/Group/GroupPairDto.cs
Normal file
12
LightlessSyncAPI/Dto/Group/GroupPairDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupPairDto(GroupData Group, UserData User) : GroupDto(Group)
|
||||
{
|
||||
public string UID => User.UID;
|
||||
public string? UserAlias => User.Alias;
|
||||
public string UserAliasOrUID => User.AliasOrUID;
|
||||
}
|
||||
8
LightlessSyncAPI/Dto/Group/GroupPairFullInfoDto.cs
Normal file
8
LightlessSyncAPI/Dto/Group/GroupPairFullInfoDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupPairFullInfoDto(GroupData Group, UserData User, UserPermissions SelfToOtherPermissions, UserPermissions OtherToSelfPermissions) : GroupPairDto(Group, User);
|
||||
8
LightlessSyncAPI/Dto/Group/GroupPairUserInfoDto.cs
Normal file
8
LightlessSyncAPI/Dto/Group/GroupPairUserInfoDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupPairUserInfoDto(GroupData Group, UserData User, GroupPairUserInfo GroupUserInfo) : GroupPairDto(Group, User);
|
||||
8
LightlessSyncAPI/Dto/Group/GroupPairUserPermissionDto.cs
Normal file
8
LightlessSyncAPI/Dto/Group/GroupPairUserPermissionDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupPairUserPermissionDto(GroupData Group, UserData User, GroupUserPreferredPermissions GroupPairPermissions) : GroupPairDto(Group, User);
|
||||
8
LightlessSyncAPI/Dto/Group/GroupPermissionDto.cs
Normal file
8
LightlessSyncAPI/Dto/Group/GroupPermissionDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupPermissionDto(GroupData Group, GroupPermissions Permissions) : GroupDto(Group);
|
||||
9
LightlessSyncAPI/Dto/SystemInfoDto.cs
Normal file
9
LightlessSyncAPI/Dto/SystemInfoDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record SystemInfoDto
|
||||
{
|
||||
public int OnlineUsers { get; set; }
|
||||
}
|
||||
7
LightlessSyncAPI/Dto/User/BulkPermissionsDto.cs
Normal file
7
LightlessSyncAPI/Dto/User/BulkPermissionsDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record BulkPermissionsDto(Dictionary<string, UserPermissions> AffectedUsers, Dictionary<string, GroupUserPreferredPermissions> AffectedGroups);
|
||||
6
LightlessSyncAPI/Dto/User/CensusDataDto.cs
Normal file
6
LightlessSyncAPI/Dto/User/CensusDataDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record CensusDataDto(ushort WorldId, short RaceId, short TribeId, short Gender);
|
||||
7
LightlessSyncAPI/Dto/User/OnlineUserCharaDataDto.cs
Normal file
7
LightlessSyncAPI/Dto/User/OnlineUserCharaDataDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record OnlineUserCharaDataDto(UserData User, CharacterData CharaData) : UserDto(User);
|
||||
7
LightlessSyncAPI/Dto/User/OnlineUserIdentDto.cs
Normal file
7
LightlessSyncAPI/Dto/User/OnlineUserIdentDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record OnlineUserIdentDto(UserData User, string Ident) : UserDto(User);
|
||||
7
LightlessSyncAPI/Dto/User/UserCharaDataMessageDto.cs
Normal file
7
LightlessSyncAPI/Dto/User/UserCharaDataMessageDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserCharaDataMessageDto(List<UserData> Recipients, CharacterData CharaData, CensusDataDto? CensusDataDto);
|
||||
7
LightlessSyncAPI/Dto/User/UserDto.cs
Normal file
7
LightlessSyncAPI/Dto/User/UserDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserDto(UserData User);
|
||||
8
LightlessSyncAPI/Dto/User/UserIndividualPairStatusDto.cs
Normal file
8
LightlessSyncAPI/Dto/User/UserIndividualPairStatusDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserIndividualPairStatusDto(UserData User, IndividualPairStatus IndividualPairStatus) : UserDto(User);
|
||||
21
LightlessSyncAPI/Dto/User/UserPairDto.cs
Normal file
21
LightlessSyncAPI/Dto/User/UserPairDto.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserFullPairDto(UserData User, IndividualPairStatus IndividualPairStatus, List<string> Groups, UserPermissions OwnPermissions, UserPermissions OtherPermissions) : UserDto(User)
|
||||
{
|
||||
public UserPermissions OwnPermissions { get; set; } = OwnPermissions;
|
||||
public UserPermissions OtherPermissions { get; set; } = OtherPermissions;
|
||||
public IndividualPairStatus IndividualPairStatus { get; set; } = IndividualPairStatus;
|
||||
}
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserPairDto(UserData User, IndividualPairStatus IndividualPairStatus, UserPermissions OwnPermissions, UserPermissions OtherPermissions) : UserDto(User)
|
||||
{
|
||||
public UserPermissions OwnPermissions { get; set; } = OwnPermissions;
|
||||
public UserPermissions OtherPermissions { get; set; } = OtherPermissions;
|
||||
public IndividualPairStatus IndividualPairStatus { get; set; } = IndividualPairStatus;
|
||||
}
|
||||
8
LightlessSyncAPI/Dto/User/UserPermissionsDto.cs
Normal file
8
LightlessSyncAPI/Dto/User/UserPermissionsDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using LightlessSync.API.Data;
|
||||
using LightlessSync.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserPermissionsDto(UserData User, UserPermissions Permissions) : UserDto(User);
|
||||
7
LightlessSyncAPI/Dto/User/UserProfileDto.cs
Normal file
7
LightlessSyncAPI/Dto/User/UserProfileDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using LightlessSync.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserProfileDto(UserData User, bool Disabled, bool? IsNSFW, string? ProfilePictureBase64, string? Description) : UserDto(User);
|
||||
Reference in New Issue
Block a user