val evening = new Event(
name -> "Hockete bei Susi && David"
start -> Date.fromString("21.07.2017"),
end -> Infinity,
place -> new House((Susi,David), "Ulm") // = CompletableFuture<Address>
);
val invitations = Partycrew.toList.map(Objects.inviteTo(_, evening)).parallelStream();
invitations
.sendAll( force -> true, replyto -> (David.email, David.whatsApp) )
.then( responses => {
if ( responses.contains("no") or responses.contains("keine Zeit") ) {
while (true) { World.run("0 / 0"); }
} else {
Susi.setProperty("Spendierhosen", "on");
David.buyAllTheThings( food -> true, drinks -> true );
return David.providePlatzZumUebernachten( maxCount -> 12 );
}
});
-
Notifications
You must be signed in to change notification settings - Fork 0
David-Mueller/helloworld
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published