${iServerJava6R_RouteCalculateMeasureResult_Title}
/// <summary>${iServerJava6R_RouteCalculateMeasureResult_method_fromJson_D}</summary> internal static RouteCalculateMeasureResult FromJson(JsonObject json) { if(json==null) { return null; } RouteCalculateMeasureResult result = new RouteCalculateMeasureResult(); result.Succeed = (bool)json["succeed"]; result.Measure = (double)json["measure"]; result.Message = (string)json["message"]; return result; }
private void RouteCalculateMeasureService_Complated(object sender,RequestEventArgs args) { JsonObject json = (JsonObject)JsonObject.Parse(args.Result); RouteCalculateMeasureResult result = RouteCalculateMeasureResult.FromJson(json); lastResult = result; RouteCalculateMeasureEventArgs e = new RouteCalculateMeasureEventArgs(result, args.Result, args.UserState); if(ProcessComplated!=null) { ProcessComplated (this,e); } }
/// <summary>${iServerJava6R_RouteCalculateMeasureEventArgs_constructor_D}</summary> public RouteCalculateMeasureEventArgs(RouteCalculateMeasureResult result,string originResult,object state) : base(state) { this.Result = result; this.OriginResult = originResult; }