${iServerJava6R_GetLayersInfoResult_Title}

${iServerJava6R_GetLayersInfoResult_Description}

        /// <summary>${iServerJava6R_GetLayersInfoResult_method_FromJson_D}</summary>
        /// <returns>${iServerJava6R_GetLayersInfoResult_method_FromJson_return}</returns>
        /// <param name="strResult">${iServerJava6R_GetLayersInfoResult_method_FromJson_param_jsonObject}</param>
        public static GetLayersInfoResult FromJson(string strResult)
        {
            GetLayersInfoResult result = new GetLayersInfoResult();

            var json = (System.Json.JsonValue)System.Json.JsonValue.Parse(strResult);
            if (json == null)
            {
                return null;
            }

            List<ServerLayer> layers = new List<ServerLayer>();
            foreach (JsonObject layerJson in json)
            {
                if (layerJson.ContainsKey("subLayers"))
                {
                    foreach (JsonObject item in (JsonArray)layerJson["subLayers"]["layers"])
                    {
                        layers.Add(ServerLayer.FromJson(item));
                    }
                }
            }
            result.LayersInfo = layers;
            return result;
        }
 private void Request_Completed(object sender, RequestEventArgs e)
 {
     //不做e.Error的判断
     if (e.Result != null && !string.IsNullOrEmpty(e.Result))
     {
         GetLayersInfoResult result = GetLayersInfoResult.FromJson(e.Result);
         lastResult = result;
         GetLayersInfoEventArgs args = new GetLayersInfoEventArgs(result, e.Result, e.UserState);
         OnProcessCompleted(args);
     }
 }
 /// <summary>${iServerJava6R_GetLayersInfoEventArgs_constructor_D}</summary>
 /// <param name="result">${iServerJava6R_GetLayersInfoEventArgs_param_result}</param>
 /// <param name="originResult">${iServerJava6R_GetLayersInfoEventArgs_param_originResult}</param>
 /// <param name="token">${iServerJava6R_GetLayersInfoEventArgs_param_token}</param>
 public GetLayersInfoEventArgs(GetLayersInfoResult result, string originResult, object token)
     : base(token)
 {
     this.Result = result;
     this.OriginResult = originResult;
 }