ningshuxia
2022-11-22 4efe844d9bcc03435cbbeb1aedbda5bf6ebf5912
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace IStation.Bimface
{
    /// <summary>
    ///   批量获取构件属性的请求参数
    /// </summary>
    public class ElementPropertyFilterRequest
    {
        /// <summary>
        ///  【必填】构建ID数组。例如: [ "313154", "313047" ]
        /// </summary>
        public List<string> elementIds { get; set; }
 
        /// <summary>
        /// 【非必填】过来条件
        /// </summary>
        public List<GroupAndKeysPair> filter { get; set; }
 
        public virtual Dictionary<string, object> GetJsonDict()
        {
            var dic = new Dictionary<string, object>();
            dic.Add("elementIds",elementIds);
            if (filter != null)
                dic.Add("filter",filter);
            return dic;
        }
    }
 
  
    public class GroupAndKeysPair
    {
        /// <summary>
        ///  分组名称。例如:default、shape、size
        /// </summary>
        public string group { get; set; }
 
        /// <summary>
        ///  关键字数组。例如: [ "length", "width", "a" ]
        /// </summary>
        public List<string> keys { get; set; }
    }
}