Package vaultWeb.controllers
Class PrivateChatController
java.lang.Object
vaultWeb.controllers.PrivateChatController
@RestController
@RequestMapping("/api/private-chats")
public class PrivateChatController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearMultipleChats(@Valid ClearChatRequestDto request, org.springframework.security.core.Authentication authentication) createGroupFromChats(@Valid CreateGroupFromChatsRequest groupCreationRequest, org.springframework.security.core.Authentication authentication) getOrCreatePrivateChat(String sender, String receiver) getPrivateChatDevices(Long privateChatId, org.springframework.security.core.Authentication authentication) getPrivateChatMessages(Long privateChatId, org.springframework.security.core.Authentication authentication) getUserChats(org.springframework.security.core.Authentication authentication)
-
Constructor Details
-
PrivateChatController
public PrivateChatController()
-
-
Method Details
-
getOrCreatePrivateChat
@GetMapping("/between") public PrivateChatDto getOrCreatePrivateChat(@RequestParam String sender, @RequestParam String receiver) -
getPrivateChatMessages
@GetMapping("/private") public List<ChatMessageDto> getPrivateChatMessages(@RequestParam Long privateChatId, org.springframework.security.core.Authentication authentication) -
getPrivateChatDevices
-
getUserChats
@GetMapping("/user-chats") public List<PrivateChatDto> getUserChats(org.springframework.security.core.Authentication authentication) -
clearMultipleChats
@PostMapping("/clear-multiple") public BatchOperationDto clearMultipleChats(@Valid @RequestBody @Valid ClearChatRequestDto request, org.springframework.security.core.Authentication authentication) -
createGroupFromChats
@PostMapping("/create-group-from-chats") public BatchOperationDto createGroupFromChats(@Valid @RequestBody @Valid CreateGroupFromChatsRequest groupCreationRequest, org.springframework.security.core.Authentication authentication)
-