${IS6_GetBusSolutionResult_Title}
${IS6_GetBusSolutionResult_Description}
/// <summary>${IS6_GetBusSolutionResult_method_fromJSON_D}</summary> /// <returns>${IS6_GetBusSolutionResult_method_fromJSON_Return}</returns> /// <param name="jsonArray">${IS6_GetBusSolutionResult_method_fromJSON_param}</param> public static GetBusSolutionResult FromJson(JsonArray jsonArray) { if (jsonArray != null && jsonArray.Count > 0) { GetBusSolutionResult result = new GetBusSolutionResult(); result.BusSolutions = new List<BusSolution>(); for (int i = 0; i < jsonArray.Count; i++) { result.BusSolutions.Add(BusSolution.FromJson((JsonObject)jsonArray[i])); } return result; } return null; }
/// <summary>${IS6_GetBusSolutionEventArgs_constructor_D}</summary> public GetBusSolutionEventArgs(GetBusSolutionResult result, string originResult, object token) : base(token) { Result = result; OriginResult = originResult; }
private void request_Completed(object sender, RequestEventArgs e) { JsonArray jsonArray = (JsonArray)JsonObject.Parse(e.Result); GetBusSolutionResult result = GetBusSolutionResult.FromJson(jsonArray); LastResult = result; GetBusSolutionEventArgs args = new GetBusSolutionEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }