示例#1
0
 /// <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);
 }
示例#2
0
 /// <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);
 }
示例#3
0
        /// <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);
        }