/// <summary>${IS6_LocationsAllocateResult_method_FromJson_D}</summary> /// <param name="jsonObject">${IS6_LocationsAllocateResult_method_FromJson_param_jsonObject}</param> /// <returns>${IS6_LocationsAllocateResult_method_FromJson_return}</returns> public static LocationsAllocateResult FromJson(JsonObject jsonObject) { if (jsonObject == null) { return null; } LocationsAllocateResult result = new LocationsAllocateResult(); result.Message = (string)jsonObject["message"]; result.ResultCenterData = DataResult.FromJson((JsonObject)jsonObject["resultCenterData"]); result.ResultCenterNodesTableData = DataResult.FromJson((JsonObject)jsonObject["resultCenterNodesTableData"]); result.Succeed = (bool)jsonObject["succeed"]; return result; }
/// <summary>${IS6_LocationsAllocateResult_constructor_D}</summary> /// <param name="result">${IS6_LocationsAllocateResult_constructor_param_result}</param> /// <param name="originResult">${IS6_LocationsAllocateResult_constructor_param_originResult}</param> /// <param name="token">${IS6_LocationsAllocateResult_constructor_param_token}</param> public LocationsAllocateEventArgs(LocationsAllocateResult 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); LocationsAllocateResult result = LocationsAllocateResult.FromJson(jsonObject); LastResult = result; LocationsAllocateEventArgs args = new LocationsAllocateEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }