${iServerJava6R_TransferGuide_Title}
private void FindTransferPathService_Complated(object sender, RequestEventArgs args) { JsonObject jsonObject = (JsonObject)JsonObject.Parse(args.Result); TransferGuide result = TransferGuide.FromJson(jsonObject); FindTransferPathEventArgs e = new FindTransferPathEventArgs(result, args.Result, args.UserState); lastResult = result; if (ProcessCompleted != null) { ProcessCompleted(this, e); } }
/// <summary>${iServerJava6R_TransferGuide_method_FromJson_D}</summary> /// <param name="json">${iServerJava6R_TransferGuide_method_FromJson_param_jsonObject}</param> public static TransferGuide FromJson(JsonObject json) { if (json == null) { return null; } TransferGuide guide = new TransferGuide(); guide.Count = (int)json["count"]; guide.TotalDistance = (double)json["totalDistance"]; guide.TransferCount = (int)json["transferCount"]; JsonArray items = (JsonArray)json["items"]; if (items != null && items.Count > 0) { guide.Items = new TransferGuideItem[items.Count]; for (int i = 0; i < items.Count; i++) { guide.Items[i] = TransferGuideItem.FromJson((JsonObject)items[i]); } } return guide; }
/// <summary>${iServerJava6R_FindTransferPathEventArgs_constructor_D}</summary> public FindTransferPathEventArgs(TransferGuide result, string originResult, object state) : base(state) { this.FindTransferPathResult = result; this.OriginResult = originResult; }