Added get of group profile, removed group from model. redone group data.
This commit is contained in:
@@ -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;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user