Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- builder.addFlow(
- PUBLISH_AD.BRAND.name(),
- new Select.Runtime(
- "Какой бренд кроссовок?",
- userId -> context -> brandRepo.getAll().map(brand -> (brand.getId(), brand.getName()),
- Select.ONLY_OPTIONS_CHECK_ANSWER,
- result -> userId -> context -> {
- System.out.println(result); //result это наш ID
- return context;
- },
- PUBLISH_AD.MODEL.name()
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment