-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
592cd8d
commit 102a94b
Showing
4 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,25 +70,24 @@ private static void createWithSms(final QrCodeApi qrCodeApi, final String qrCode | |
private static void createWithVEvent(final QrCodeApi qrCodeApi, final String qrCodeDir) throws IOException { | ||
final LocalDateTime startDateTime = LocalDateTime.now() | ||
.plusWeeks(2); | ||
final VEvent vevent = new VEvent.Builder("QR Codes with Kotlin & Java") | ||
.location("Java User Group Hamburg") | ||
.startDate(startDateTime) | ||
.endDate(startDateTime.plusHours(2)) | ||
.description("Let's create QR Codes with Kotlin & Java") | ||
.build(); | ||
final String vEventQrCodeText = vevent.toVEventQrCodeText(); | ||
final String vEventQrCodeText = new VEvent() | ||
.summary("QR Codes with Kotlin & Java") | ||
.location("Java User Group Hamburg") | ||
.startDate(startDateTime) | ||
.endDate(startDateTime.plusHours(2)) | ||
.description("Let's create QR Codes with Kotlin & Java") | ||
.toVEventQrCodeText(); | ||
createDefaultQrCode(qrCodeApi, vEventQrCodeText, new File(qrCodeDir, "vevent.png")); | ||
} | ||
|
||
private static void createWithVCard(final QrCodeApi qrCodeApi, final String qrCodeDir) throws IOException { | ||
final VCard vCard = new VCard.Builder("Simon Scholz") | ||
.email("[email protected]") | ||
.address("Main Street 1", "Hamburg", "22855") | ||
.organization("Self Employed") | ||
.phoneNumber("+49 176 12345678") | ||
.website("https://simonscholz.github.io/") | ||
.build(); | ||
final String vCardQrCodeText = vCard.toVCardQrCodeText(); | ||
final String vCardQrCodeText = new VCard() | ||
.formattedName("Simon Scholz") | ||
.email("[email protected]") | ||
.address("Main Street 1", "Hamburg", "22855") | ||
.organization("Self Employed") | ||
.phoneNumber("+49 176 12345678") | ||
.website("https://simonscholz.github.io/").toVCardQrCodeText(); | ||
createDefaultQrCode(qrCodeApi, vCardQrCodeText, new File(qrCodeDir, "vCard.png")); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters