${iServerJava6R_FindStopResult_Title}
private void FindStopService_Complated(object sender, RequestEventArgs args) { JsonArray jsonObject = (JsonArray)JsonObject.Parse(args.Result); FindStopResult result = FindStopResult.FromJson(jsonObject); FindStopEventArgs e = new FindStopEventArgs(result, args.Result, args.UserState); lastResult = result; if (ProcessCompleted != null) { ProcessCompleted(this, e); } }
/// <summary>${iServerJava6R_FindStopResult_method_FromJson_D}</summary> /// <param name="json">${iServerJava6R_FindStopResult_method_FromJson_param_jsonObject}</param> public static FindStopResult FromJson(JsonArray json) { if (json == null) { return null; } FindStopResult result = new FindStopResult(); if (json != null && json.Count > 0) { result.Stops = new List<TransferStopInfo>(); for (int i = 0; i < json.Count; i++) { TransferStopInfo stop = TransferStopInfo.FromJson((JsonObject)json[i]); result.Stops.Add(stop); } } return result; }
/// <summary>${iServerJava6R_FindStopEventArgs_constructor_D}</summary> public FindStopEventArgs(FindStopResult result, string originResult, object state) : base(state) { this.FindStopResult = result; this.OriginResult = originResult; }