Co-authored-by: defnotken <itsdefnotken@gmail.com> Co-authored-by: cake <admin@cakeandbanana.nl> Reviewed-on: #88 Reviewed-by: cake <cake@noreply.git.lightless-sync.org> Co-authored-by: defnotken <defnotken@noreply.git.lightless-sync.org> Co-committed-by: defnotken <defnotken@noreply.git.lightless-sync.org>
19 lines
674 B
C#
19 lines
674 B
C#
using LightlessSync.API.Data.Enum;
|
|
using LightlessSync.Services.CharaData.Models;
|
|
using System.Collections.Immutable;
|
|
namespace LightlessSync.Services.CharaData;
|
|
|
|
public sealed class CharacterAnalysisSummary
|
|
{
|
|
public static CharacterAnalysisSummary Empty { get; } =
|
|
new(ImmutableDictionary<ObjectKind, CharacterAnalysisObjectSummary>.Empty);
|
|
|
|
internal CharacterAnalysisSummary(IImmutableDictionary<ObjectKind, CharacterAnalysisObjectSummary> objects)
|
|
{
|
|
Objects = objects;
|
|
}
|
|
|
|
public IImmutableDictionary<ObjectKind, CharacterAnalysisObjectSummary> Objects { get; }
|
|
|
|
public bool HasData => Objects.Any(kvp => kvp.Value.HasEntries);
|
|
} |