Interface IConnectionService
- All Known Implementing Classes:
ConnectionService
public interface IConnectionService
- Author:
- Nuri Can ÖZTÜRK The interface Connection service. This interface is responsible for handling connection requests, answers, removals, blocks, unblocks, and getting connections, connection requests, and blocked connections.
-
Method Summary
Modifier and TypeMethodDescriptioncallofproject.dev.data.common.clas.ResponseMessage<Object>answerConnectionRequest(UUID requestId, UUID friendId, boolean answer) Answer connection request response message.callofproject.dev.data.common.clas.ResponseMessage<Object>blockConnection(UUID userId, UUID friendId) Block connection response message.callofproject.dev.data.common.clas.MultipleResponseMessagePageable<Object>getBlockedConnectionsByUserId(UUID userId) Get blocked connections by user id.callofproject.dev.data.common.clas.MultipleResponseMessagePageable<Object>getConnectionRequestsByUserId(UUID userId) Get connection requests by user id.callofproject.dev.data.common.clas.MultipleResponseMessagePageable<Object>getConnectionsByUserId(UUID userId) Get connections by user id.callofproject.dev.data.common.clas.ResponseMessage<Object>removeConnection(UUID userId, UUID friendId) Remove connection response message.callofproject.dev.data.common.clas.ResponseMessage<Object>sendConnectionRequest(UUID userId, UUID friendId) Send connection request response message.callofproject.dev.data.common.clas.ResponseMessage<Object>unblockConnection(UUID userId, UUID friendId) Unblock connection response message.
-
Method Details
-
sendConnectionRequest
callofproject.dev.data.common.clas.ResponseMessage<Object> sendConnectionRequest(UUID userId, UUID friendId) Send connection request response message.- Parameters:
userId- the user idfriendId- the friend id- Returns:
- the response message
-
answerConnectionRequest
callofproject.dev.data.common.clas.ResponseMessage<Object> answerConnectionRequest(UUID requestId, UUID friendId, boolean answer) Answer connection request response message.- Parameters:
requestId- the request idfriendId- the friend idanswer- the answer- Returns:
- the response message
-
removeConnection
callofproject.dev.data.common.clas.ResponseMessage<Object> removeConnection(UUID userId, UUID friendId) Remove connection response message.- Parameters:
userId- the user idfriendId- the friend id- Returns:
- the response message
-
blockConnection
callofproject.dev.data.common.clas.ResponseMessage<Object> blockConnection(UUID userId, UUID friendId) Block connection response message.- Parameters:
userId- the user idfriendId- the friend id- Returns:
- the response message
-
unblockConnection
callofproject.dev.data.common.clas.ResponseMessage<Object> unblockConnection(UUID userId, UUID friendId) Unblock connection response message.- Parameters:
userId- the user idfriendId- the friend id- Returns:
- the response message
-
getConnectionsByUserId
callofproject.dev.data.common.clas.MultipleResponseMessagePageable<Object> getConnectionsByUserId(UUID userId) Get connections by user id.- Parameters:
userId- the user id- Returns:
- the multiple response message pageable
-
getConnectionRequestsByUserId
callofproject.dev.data.common.clas.MultipleResponseMessagePageable<Object> getConnectionRequestsByUserId(UUID userId) Get connection requests by user id.- Parameters:
userId- the user id- Returns:
- the multiple response message pageable
-
getBlockedConnectionsByUserId
callofproject.dev.data.common.clas.MultipleResponseMessagePageable<Object> getBlockedConnectionsByUserId(UUID userId) Get blocked connections by user id.- Parameters:
userId- the user id- Returns:
- the multiple response message pageable
-