aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Storage/MultiStorageResult.cs
blob: 0331d021b271cb1e9511ff29e8f4ae18cd146175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.FSE.Common.Storage
{
    public class MultiStorageResult : IStorageResult
    {
        public bool Confirmed { get; set; }
        public List<String> SelectedItems { get; set; }

        public MultiStorageResult()
        {
            SelectedItems = new List<string>();
        }

        public static implicit operator bool(MultiStorageResult result)
        {
            return result.SelectedItems != null && result.SelectedItems.Count > 0 && result.Confirmed;
        }
    }
}