@@ -856,12 +856,14 @@ public void onUpdateFileTransferReceivingProgress(
856856 * or 'org.json.JSONArray'.
857857 * @param isPublic Flag to specify whether the message was sent to us only (as opposed to
858858 * broadcast to all peers in the room).
859+ * @param timeStamp The timestamp of the message,
860+ * The number of milliseconds since the epoch of 1970-01-01T00:00:00Z (midnight, January 1, 1970 UTC).
859861 * @param remotePeerId The id of the remote peer
860862 */
861863 @ Override
862- public void onReceiveServerMessage (Object message , boolean isPublic , String
864+ public void onReceiveServerMessage (Object message , boolean isPublic , Long timeStamp , String
863865 remotePeerId ) {
864- Log .d (TAG , "onReceiveServerMessage(message: " + message + ",isPublic: " + isPublic + ", remotePeerId: " + remotePeerId );
866+ Log .d (TAG , "onReceiveServerMessage(message: " + message + ",isPublic: " + isPublic + ", timeStamp: " + timeStamp + ", remotePeerId: " + remotePeerId );
865867
866868 presenter .processServerMessageReceived (remotePeerId , message , !isPublic );
867869 }
@@ -874,12 +876,14 @@ public void onReceiveServerMessage(Object message, boolean isPublic, String
874876 * or 'org.json.JSONArray'.
875877 * @param isPublic Flag to specify whether the message was sent to us only (as opposed to
876878 * broadcast to all peers in the room).
879+ * @param timeStamp The timestamp of the message,
880+ * The number of milliseconds since the epoch of 1970-01-01T00:00:00Z (midnight, January 1, 1970 UTC).
877881 * @param remotePeerId The id of the remote peer
878882 */
879883 @ Override
880- public void onReceiveP2PMessage (Object message , boolean isPublic , String
884+ public void onReceiveP2PMessage (Object message , boolean isPublic , Long timeStamp , String
881885 remotePeerId ) {
882- Log .d (TAG , "onReceiveP2PMessage(message: " + message + ",isPublic: " + isPublic + ", remotePeerId: " + remotePeerId );
886+ Log .d (TAG , "onReceiveP2PMessage(message: " + message + ",isPublic: " + isPublic + ", timeStamp: " + timeStamp + ", remotePeerId: " + remotePeerId );
883887
884888 presenter .processP2PMessageReceived (remotePeerId , message , !isPublic );
885889 }
0 commit comments