using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IStation.Bimface { public class FileElementsGetRequest { public FileElementsGetRequest() { categoryId = null; family = null; familyType = null; floor = null; paginationContextId = null; paginationNo = null; paginationSize = null; roomId = null; roomToleranceXY = null; roomToleranceZ = null; specialty = null; systemType = null; } /// /// 【非必填】筛选条件构件类型id /// public string categoryId { get; set; } /// /// 【非必填】筛选条件族 /// public string family { get; set; } /// /// 【非必填】筛选条件族类型 /// public string familyType { get; set; } /// /// 【非必填】筛选条件楼层 /// public string floor { get; set; } /// /// 【非必填】根据paginationContextId返回构件ID列表 /// public string paginationContextId { get; set; } /// /// 【非必填】返回结果中paginationNo对应的页码构件ID项 /// public int? paginationNo { get; set; } /// /// 【非必填】返回结果按照paginationSize分页 /// public int? paginationSize { get; set; } /// /// 【非必填】筛选条件房间id /// public string roomId { get; set; } /// /// 【非必填】XY坐标轴方向对构件的筛选容忍度 /// public RoomTolerance? roomToleranceXY { get; set; } /// /// 【非必填】Z坐标轴方向对构件的筛选容忍度 /// public RoomTolerance? roomToleranceZ { get; set; } /// /// 【非必填】筛选条件专业 /// public string specialty { get; set; } /// /// 【非必填】筛选条件系统类型 /// public string systemType { get; set; } /// /// 获取JSON字典 /// /// public virtual Dictionary GetJsonDict() { var dic = new Dictionary(); if (categoryId != null) dic.Add("categoryId",categoryId); if (family != null) dic.Add("family", family); if(familyType!=null) dic.Add("familyType", familyType); if (floor != null) dic.Add("floor", floor); if (paginationContextId != null) dic.Add("paginationContextId", paginationContextId); if (paginationNo != null) dic.Add("paginationNo", paginationNo); if (paginationSize != null) dic.Add("paginationSize", paginationSize); if (roomId != null) dic.Add("roomId", roomId); if (roomToleranceXY != null) dic.Add("roomToleranceXY", roomToleranceXY); if (roomToleranceZ != null) dic.Add("roomToleranceZ", roomToleranceZ); if (specialty != null) dic.Add("specialty", specialty); if (systemType != null) dic.Add("systemType", systemType); return dic; } } }