protected abstract void handle_result(StockRequestedListingJSON new_result);
protected override void handle_result(StockRequestedListingJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected void finish(StockRequestedListingJSON result) { if (fieldGeneratorStockListing.have_value) { result.setStockListing(fieldGeneratorStockListing.value); fieldGeneratorStockListing.have_value = false; } else if ((!(result.hasStockListing())) && !allow_incomplete) { error("When parsing the object for %what%, the \"StockListing\" field was missing."); } if (fieldGeneratorListingRequestType.have_value) { result.setListingRequestType(fieldGeneratorListingRequestType.value); fieldGeneratorListingRequestType.have_value = false; } else if ((!(result.hasListingRequestType())) && !allow_incomplete) { error("When parsing the object for %what%, the \"ListingRequestType\" field was missing."); } if (fieldGeneratorExchangeExplicit.have_value) { result.setExchangeExplicit(fieldGeneratorExchangeExplicit.value); fieldGeneratorExchangeExplicit.have_value = false; } else if ((!(result.hasExchangeExplicit())) && !allow_incomplete) { error("When parsing the object for %what%, the \"ExchangeExplicit\" field was missing."); } if (fieldGeneratorPrimaryHasData.have_value) { result.setPrimaryHasData(fieldGeneratorPrimaryHasData.value); fieldGeneratorPrimaryHasData.have_value = false; } else if ((!(result.hasPrimaryHasData())) && !allow_incomplete) { error("When parsing the object for %what%, the \"PrimaryHasData\" field was missing."); } if (fieldGeneratorAllowDataWarnings.have_value) { result.setAllowDataWarnings(fieldGeneratorAllowDataWarnings.value); fieldGeneratorAllowDataWarnings.have_value = false; } else if ((!(result.hasAllowDataWarnings())) && !allow_incomplete) { error("When parsing the object for %what%, the \"AllowDataWarnings\" field was missing."); } if (fieldGeneratorAlternateListing.have_value) { result.setAlternateListing(fieldGeneratorAlternateListing.value); fieldGeneratorAlternateListing.have_value = false; } if (fieldGeneratorRemoteDelay.have_value) { result.initRemoteDelay(); int count = fieldGeneratorRemoteDelay.value.Count; for (int num = 0; num < count; ++num) { result.appendRemoteDelay(fieldGeneratorRemoteDelay.value[num]); } fieldGeneratorRemoteDelay.value.Clear(); fieldGeneratorRemoteDelay.have_value = false; } }