Added get of group profile, removed group from model. redone group data.

This commit is contained in:
CakeAndBanana
2025-09-17 02:38:21 +02:00
parent 28e1cc4695
commit 43be25cc45

View File

@@ -3,17 +3,11 @@
namespace LightlessSync.API.Data; namespace LightlessSync.API.Data;
[MessagePackObject(keyAsPropertyName: true)] [MessagePackObject(keyAsPropertyName: true)]
public record GroupData(string GID, string? Alias = null, DateTime? CreatedAt = null, string? Description = null, string? Tags = null, string? Avatar = null) public record GroupData(string GID, string? Alias = null, DateTime? CreatedAt = null)
{ {
[IgnoreMember] [IgnoreMember]
public string AliasOrGID => string.IsNullOrWhiteSpace(Alias) ? GID : Alias; public string AliasOrGID => string.IsNullOrWhiteSpace(Alias) ? GID : Alias;
[IgnoreMember] [IgnoreMember]
public DateTime? CreatedAt { get; set; } = CreatedAt; public DateTime? CreatedAt { get; set; } = CreatedAt;
[IgnoreMember]
public string? Description { get; set; } = Description;
[IgnoreMember]
public string? Tags { get; set; } = Tags;
[IgnoreMember]
public string? Avatar { get; set; } = Avatar;
} }