Exemple #1
0
        public Pb.Filter ConvertToPBFilter()
        {
            var internalFilter = new Pb.TimestampsFilter();

            if (Timestamps?.Any() == true)
            {
                internalFilter.Timestamps.AddRange(Timestamps);
            }

            var filter = new Pb.Filter
            {
                Name             = Name,
                SerializedFilter = internalFilter.ToByteString()
            };

            return(filter);
        }