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; }
|
}
|
}
|