r7051 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm



Author: otaylor
Date: 2007-12-13 11:55:24 -0600 (Thu, 13 Dec 2007)
New Revision: 7051

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java
Log:
Use -1 not -1000 in the protocol for no-clicked-timestamp

Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java	2007-12-13 17:49:05 UTC (rev 7050)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java	2007-12-13 17:55:24 UTC (rev 7051)
@@ -145,7 +145,11 @@
 	
 	@DMProperty(defaultInclude=true, group=USER_BLOCK_DATA_GROUP, cached=false)
 	public long getClickedTimestamp() {
-		return userBlockData.getClickedTimestampAsLong();
+		long clickedTimestamp = userBlockData.getClickedTimestampAsLong();
+		if (clickedTimestamp < 0) // Prettification, not to return -1000, which is what is stored in the DB
+			return -1;
+		else
+			return clickedTimestamp;
 	}
 
 	@DMProperty(defaultInclude=true, group=USER_BLOCK_DATA_GROUP, cached=false)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]