Compare commits
3 Commits
api-groups
...
eb04433427
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb04433427 | ||
|
|
3c10380162 | ||
| d62adbb5b6 |
@@ -1,9 +1,16 @@
|
||||
using MessagePack;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Data;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserData(string UID, string? Alias = null, bool IsAdmin = false, bool IsModerator = false)
|
||||
public record UserData(
|
||||
string UID,
|
||||
string? Alias = null,
|
||||
bool IsAdmin = false,
|
||||
bool IsModerator = false,
|
||||
bool HasVanity = false,
|
||||
string? TextColorHex = "",
|
||||
string? TextGlowColorHex = "")
|
||||
{
|
||||
[IgnoreMember]
|
||||
public string AliasOrUID => string.IsNullOrWhiteSpace(Alias) ? UID : Alias;
|
||||
|
||||
@@ -8,4 +8,4 @@ namespace LightlessSync.API.Dto.Group;
|
||||
public record GroupPasswordDto(GroupData Group, string Password) : GroupDto(Group);
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupJoinDto(GroupData Group, string Password, GroupUserPreferredPermissions GroupUserPreferredPermissions, bool Finder = false) : GroupPasswordDto(Group, Password);
|
||||
public record GroupJoinDto(GroupData Group, string Password, GroupUserPreferredPermissions GroupUserPreferredPermissions) : GroupPasswordDto(Group, Password);
|
||||
@@ -50,6 +50,7 @@ public interface ILightlessHub
|
||||
Task GroupChangeOwnership(GroupPairDto groupPair);
|
||||
Task<bool> GroupChangePassword(GroupPasswordDto groupPassword);
|
||||
Task GroupClear(GroupDto group);
|
||||
Task GroupClearFinder(GroupDto group);
|
||||
Task<GroupJoinDto> GroupCreate();
|
||||
Task<List<string>> GroupCreateTempInvite(GroupDto group, int amount);
|
||||
Task GroupDelete(GroupDto group);
|
||||
|
||||
Reference in New Issue
Block a user