Skip to content

Commit 532d6ab

Browse files
author
Devendra
committed
adding setUUID option to demo console
1 parent bd4ad82 commit 532d6ab

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎java/examples/src/com/pubnub/examples/PubnubDemoConsole.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,11 @@ public void startDemo() {
353353
case 25:
354354
pubnub.setCacheBusting(false);
355355
break;
356+
case 26:
357+
notifyUser("Set UUID");
358+
String uuid = getStringFromConsole("UUID");
359+
pubnub.setUUID(uuid);
360+
break;
356361
default:
357362
notifyUser("Invalid Input");
358363
}
@@ -545,6 +550,7 @@ private void displayMenuOptions() {
545550
notifyUser("ENTER 23 FOR Setting Domain ( current: "+ pubnub.getDomain() + " )");
546551
notifyUser("ENTER 24 FOR Enabling Cache Busting ( current: " + pubnub.getCacheBusting() + " )");
547552
notifyUser("ENTER 25 FOR Disabling Cache Busting ( current: " + pubnub.getCacheBusting() + " )");
553+
notifyUser("ENTER 26 FOR Setting UUID ( current: " + pubnub.getUUID() + " )");
548554
notifyUser("\nENTER 0 to display this menu");
549555
}
550556

‎java/jars/PubnubDemoConsole.jar‎

71 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)