Пример #1
0
        private void ConvertThroughProto(InclusiveFilter source)
        {
            Com.DigitalAsset.Ledger.Api.V1.Filters protoValue = source.ToProto();
            var target = Filter.FromProto(protoValue);

            Assert.IsTrue(source == target);
        }
Пример #2
0
        public static Filter FromProto(Com.DigitalAsset.Ledger.Api.V1.Filters filters)
        {
            if (filters.Inclusive != null)
            {
                return(InclusiveFilter.FromProto(filters.Inclusive));
            }

            return(NoFilter.Instance);
        }