Skip to content

Commit

Permalink
adding getUUID method which returns current uuid for pubnub object
Browse files Browse the repository at this point in the history
  • Loading branch information
Devendra committed Aug 26, 2013
1 parent ffca7a3 commit 4bd1e01
Show file tree
Hide file tree
Showing 35 changed files with 72 additions and 39 deletions.
Binary file modified android/Pubnub-Android-3.5.4.jar
Binary file not shown.
Binary file modified android/Pubnub-Android-Debug-3.5.4.jar
Binary file not shown.
Binary file modified android/examples/PubnubExample/libs/Pubnub-Android-3.5.4.jar
Binary file not shown.
Binary file modified android/examples/SubscribeAtBoot/libs/Pubnub-Android-3.5.4.jar
Binary file not shown.
Binary file modified blackberry/Pubnub-BlackBerry-3.5.4.jar
Binary file not shown.
Binary file modified blackberry/Pubnub-BlackBerry-Debug-3.5.4.jar
Binary file not shown.
Binary file modified codenameone/Pubnub-CodeNameOne-3.5.4.cn1lib
Binary file not shown.
Binary file modified codenameone/Pubnub-CodeNameOne-Debug-3.5.4.cn1lib
Binary file not shown.
Binary file modified j2me/Pubnub-MicroEdition-3.5.4.jar
Binary file not shown.
Binary file modified j2me/Pubnub-MicroEdition-Debug-3.5.4.jar
Binary file not shown.
Binary file modified java/Pubnub-StandardEdition-3.5.4.jar
Binary file not shown.
Binary file modified java/Pubnub-StandardEdition-Debug-3.5.4.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions java/doc/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
All Classes
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
All Classes
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/Callback.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:05 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:48 IST 2013 -->
<TITLE>
Callback
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/HttpUtil.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:05 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:48 IST 2013 -->
<TITLE>
HttpUtil
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
27 changes: 25 additions & 2 deletions java/doc/com/pubnub/api/Pubnub.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:05 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:48 IST 2013 -->
<TITLE>
Pubnub
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down Expand Up @@ -399,6 +399,14 @@ <H2>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/pubnub/api/Pubnub.html#getUUID()">getUUID</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets current UUID</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/pubnub/api/Pubnub.html#hereNow(java.lang.String, com.pubnub.api.Callback)">hereNow</A></B>(java.lang.String&nbsp;channel,
<A HREF="../../../com/pubnub/api/Callback.html" title="class in com.pubnub.api">Callback</A>&nbsp;callback)</CODE>
Expand Down Expand Up @@ -1803,6 +1811,21 @@ <H2>
</DL>
<HR>

<A NAME="getUUID()"><!-- --></A><H3>
getUUID</H3>
<PRE>
public java.lang.String <B>getUUID</B>()</PRE>
<DL>
<DD>Gets current UUID
<P>
<DD><DL>

<DT><B>Returns:</B><DD>uuid
current UUID value for Pubnub client</DL>
</DD>
</DL>
<HR>

<A NAME="publish(java.lang.String, org.json.JSONObject, com.pubnub.api.Callback)"><!-- --></A><H3>
publish</H3>
<PRE>
Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/PubnubError.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
PubnubError
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/PubnubException.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
PubnubException
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/PubnubUtil.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
PubnubUtil
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/package-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
com.pubnub.api
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/package-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
com.pubnub.api
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/com/pubnub/api/package-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
com.pubnub.api Class Hierarchy
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
Constant Field Values
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/deprecated-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
Deprecated List
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/help-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
API Help
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
Index
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="./stylesheet.css" TITLE="Style">

Expand Down
2 changes: 1 addition & 1 deletion java/doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Aug 23 23:20:06 IST 2013-->
<!-- Generated by javadoc on Mon Aug 26 12:12:49 IST 2013-->
<TITLE>
Generated Documentation (Untitled)
</TITLE>
Expand Down
4 changes: 2 additions & 2 deletions java/doc/overview-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
Class Hierarchy
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
4 changes: 2 additions & 2 deletions java/doc/serialized-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Fri Aug 23 23:20:06 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Aug 26 12:12:49 IST 2013 -->
<TITLE>
Serialized Form
</TITLE>

<META NAME="date" CONTENT="2013-08-23">
<META NAME="date" CONTENT="2013-08-26">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

Expand Down
Binary file modified java/jars/Pubnub-UnitTests-3.5.4.jar
Binary file not shown.
Binary file modified java/jars/PubnubDemoConsole.jar
Binary file not shown.
Binary file modified java/jars/PubnubExample.jar
Binary file not shown.
10 changes: 10 additions & 0 deletions java/srcPubnubApi/com/pubnub/api/PubnubCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ public void setUUID(String uuid) {
this.UUID = uuid;
}

/**
* Gets current UUID
*
* @return uuid
* current UUID value for Pubnub client
*/
public String getUUID() {
return this.UUID;
}

/**
*
* Constructor for Pubnub Class
Expand Down
8 changes: 4 additions & 4 deletions java/srcPubnubApi/com/pubnub/api/PubnubUtilCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ static Hashtable hashtableMerge(Hashtable dst, Hashtable src) {
* @return JSONArray or JSONObject or String
*/
static Object parseJSON(Object obj) {
if (obj instanceof String) {
if (((String) obj).endsWith("\"") && ((String) obj).startsWith("\""))
obj = ((String) obj).substring(1, ((String) obj).length() -1);
}
if (obj instanceof String) {
if (((String) obj).endsWith("\"") && ((String) obj).startsWith("\""))
obj = ((String) obj).substring(1, ((String) obj).length() -1);
}
return obj;
}
}

0 comments on commit 4bd1e01

Please sign in to comment.