API Group changes #5

Merged
cake merged 8 commits from api-groups-changes into 1.12.0-server 2025-09-25 15:54:27 +00:00
Showing only changes of commit 43be25cc45 - Show all commits

View File

@@ -3,17 +3,11 @@
namespace LightlessSync.API.Data;
[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]
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;
}