finish get-character implementation
This commit is contained in:
@@ -221,4 +221,18 @@ public class JsonFileDataProvider : IDataProvider
|
||||
return jcharacter.Owner;
|
||||
return null;
|
||||
}
|
||||
|
||||
public IEnumerable<Character>? GetCharacters(Group group)
|
||||
{
|
||||
if (group is JsonGroup jgroup)
|
||||
return jgroup.Characters;
|
||||
return null;
|
||||
}
|
||||
|
||||
public IEnumerable<Character>? GetCharacters(UserProfile profile)
|
||||
{
|
||||
if (profile is UserProfile jprofile)
|
||||
return JsonFile.Characters.Where(n => n.Owner == profile);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user