Added changes for the API to support profiles

This commit is contained in:
CakeAndBanana
2025-09-17 02:09:23 +02:00
parent a337481243
commit 28e1cc4695
5 changed files with 20 additions and 2 deletions

View File

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