${IS6_ResultSet_Title}

${IS6_ResultSet_Description}

        //public int TrackingLayerIndex { get; private set; }
        //public string UserID { get; private set; }
        /// <summary>${IS6_ResultSet_method_FromJson_D}</summary>
        /// <param name="jsonObject">${IS6_ResultSet_method_FromJson_param_jsonObject}</param>
        /// <returns>${IS6_ResultSet_method_FromJson_return}</returns>
        public static ResultSet FromJson(JsonObject jsonObject)
        {
            if (jsonObject == null)
            {
                return null;
            }

            ResultSet resultSet = new ResultSet();

            resultSet.TotalCount = (int)jsonObject["totalCount"];
            resultSet.CurrentCount = (int)jsonObject["currentCount"];
            resultSet.CustomRespone = (string)jsonObject["customResponse"];

            JsonArray recordsets = (JsonArray)jsonObject["recordsets"];
            if (recordsets != null && recordsets.Count > 0)
            {
                resultSet.RecordSets = new List<RecordSet>();
                for (int i = 0; i < recordsets.Count; i++)
                {
                    resultSet.RecordSets.Add(RecordSet.FromJson((JsonObject)recordsets[i]));
                }
            }

            //resultSet.TrackingLayerIndex = (int)jsonObject["trackingLayerIndex"];
            //resultSet.UserID = (string)jsonObject["userID"];

            return resultSet;
        }
 /// <summary>${IS6_QueryServiceEventArgs_constructor_D}</summary>
 /// <param name="resultSet">${IS6_QueryServiceEventArgs_constructor_param_result}</param>
 /// <param name="originResult">${IS6_QueryServiceEventArgs_constructor_param_originResult}</param>
 /// <param name="userToken">${IS6_QueryServiceEventArgs_constructor_param_token}</param>
 public QueryServiceEventArgs(ResultSet resultSet, string originResult, object userToken)
     : base(userToken)
 {
     ResultSet = resultSet;
     OriginResult = originResult;
 }
 private void request_Completed(object sender, RequestEventArgs e)
 {
     JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result);
     ResultSet result = ResultSet.FromJson(jsonObject);
     LastResult = result;
     QueryServiceEventArgs args = new QueryServiceEventArgs(result, e.Result, e.UserState);
     OnProcessCompleted(args);
 }