separated socketConnection server init to a separate method, in order to circumvent multiple ServerSocket instantiations
changed the data type on the argument of handleEvent from String[] to TreeMap<String,String> for better clarity & non-randomness of the returned values from the Kotlin payload request
Added the following method on eventHandlers:
GetMessagesByGroupID = receives all messages by given group id
SendFriendRequest = copied from #35
SendMessageByGroupID = inserts a new message by given group id
deleteMessageByGroupID = deletes a message by given group id
Added insert sql statement for friend request = copied from #35
Changed all of the places of messageJSON (StringBuilder) to be now located inside the try-catch block, in cases if there are no messages/friendrequests
added a method notifyUsers for the SendMessageByGroupIDEventHandler, for implementing the notification functionality (currently it's not in use, but it's planned to be once the client app completes the notification functionality)
added S3Manager class to upload all decoded/raw files to AWS S3 bucket tuv-hotel-public-hosting. Also added a new method for downloading a file to S3 and encoding it - afterwards it's being sent to the client app for decoding and displaying it
modified the docode method to handle the attachmentURL key value
removed Chat class, not needed
changed the SocketConnection to init a thread, instead of ExecutorService
added sendEvent functionality for sending notification alerts to Kotlin app (not used, currently in progress)
Description
ServerSocket
instantiationshandleEvent
from String[] to TreeMap<String,String> for better clarity & non-randomness of the returned values from the Kotlin payload requesteventHandlers
:GetMessagesByGroupID
= receives all messages by given group idSendFriendRequest
= copied from #35SendMessageByGroupID
= inserts a new message by given group iddeleteMessageByGroupID
= deletes a message by given group idmessageJSON
(StringBuilder) to be now located inside the try-catch block, in cases if there are no messages/friendrequestsnotifyUsers
for theSendMessageByGroupIDEventHandler
, for implementing the notification functionality (currently it's not in use, but it's planned to be once the client app completes the notification functionality)S3Manager
class to upload all decoded/raw files to AWS S3 buckettuv-hotel-public-hosting
. Also added a new method for downloading a file to S3 and encoding it - afterwards it's being sent to the client app for decoding and displaying itadded
sendEvent
functionality for sending notification alerts to Kotlin app (not used, currently in progress)New dependencies/ JAR files !!
Checklist
Remark
For automation please see closing-issues-using-keywords