|
@@ -61,7 +61,7 @@ namespace InABox.Mobile
|
|
|
{
|
|
|
readonly MultiQuery _query = new();
|
|
|
|
|
|
- protected Func<Filter<TEntity>> Filter { get; set; }
|
|
|
+ public Func<Filter<TEntity>> Filter { get; set; }
|
|
|
|
|
|
protected virtual Filter<TEntity> BaseFilter() => null;
|
|
|
|
|
@@ -133,7 +133,7 @@ namespace InABox.Mobile
|
|
|
|
|
|
public Dictionary<Guid, byte[]> Images { get; private set; } = new Dictionary<Guid, byte[]>();
|
|
|
|
|
|
- public ImageSource GetImage(Guid id)
|
|
|
+ public ImageSource GetImageSource(Guid id)
|
|
|
{
|
|
|
ImageSource result = null;
|
|
|
if (Images.TryGetValue(id, out byte[] data))
|
|
@@ -142,6 +142,8 @@ namespace InABox.Mobile
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public byte[] GetImage(Guid id) => Images.GetValueOrDefault(id);
|
|
|
+
|
|
|
public bool HasImages() => Images.Any();
|
|
|
|
|
|
#endregion
|