/// <summary> /// 填充参数 /// </summary> /// <param name="args">原有参数</param> /// <returns>填充后的参数</returns> public virtual Dictionary <string, string> FillArgs(Dictionary <string, string> args) { if (args == null) { args = new Dictionary <string, string>(); } if (FenceId > 0) { args["fence_id"] = FenceId.ToString(); } if (string.IsNullOrWhiteSpace(FenceName) == false) { args["fence_name"] = FenceName; } if (string.IsNullOrWhiteSpace(MonitoredPerson) == false) { args["monitored_person"] = MonitoredPerson; } args["coord_type"] = CoordType.ToString(); if (Denoise > 0) { args["denoise"] = Denoise.ToString(); } return(args); }
/// <summary> /// 填充参数 /// </summary> /// <param name="args">原有参数</param> /// <returns>填充后的参数</returns> /// <exception cref="System.NotImplementedException"></exception> public virtual Dictionary <string, string> FillArgs(Dictionary <string, string> args) { if (args == null) { args = new Dictionary <string, string>(); } args["fence_id"] = FenceId.ToString(); if (MonitoredPerson?.Any() == true) { args["monitored_person"] = string.Join(",", MonitoredPerson); } return(args); }
/// <summary> /// 填充参数 /// </summary> /// <param name="args">原有参数</param> /// <returns>填充后的参数</returns> public virtual Dictionary <string, string> FillArgs(Dictionary <string, string> args) { if (args == null) { args = new Dictionary <string, string>(); } args["fence_id"] = FenceId.ToString(); args["page_index"] = PageIndex.ToString(); args["page_size"] = PageSize.ToString(); return(args); }