${iServerJava6R_GetFeaturesResult_Title}
${iServerJava6R_GetFeaturesResult_Description}
/// <summary>${iServerJava6R_GetFeaturesResult_method_fromJson_D}</summary> /// <returns>${iServerJava6R_GetFeaturesResult_method_fromJson_return}</returns> /// <param name="json">${iServerJava6R_GetFeaturesResult_method_fromJson_param_jsonObject}</param> public static GetFeaturesResult FromJson(JsonObject json) { if (json == null) return null; GetFeaturesResult result = new GetFeaturesResult(); result.FeatureCount = (int)json["featureCount"]; if (result.FeatureCount < 1) { return null; } JsonArray features = (JsonArray)json["features"]; if (features != null && features.Count > 0) { result.Features = new FeatureCollection(); for (int i = 0; i < features.Count; i++) { ServerFeature f = ServerFeature.FromJson((JsonObject)features[i]); result.Features.Add(f.ToFeature()); } } return result; }
/// <summary>${iServerJava6R_GetFeaturesEventArgs_constructor_D}</summary> public GetFeaturesEventArgs(GetFeaturesResult result, string originResult, object token) : base(token) { Result = result; OriginResult = originResult; }
private void request_Completed(object sender, RequestEventArgs e) { JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result); GetFeaturesResult result = GetFeaturesResult.FromJson(jsonObject); LastResult = result; GetFeaturesEventArgs args = new GetFeaturesEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }