Class PrivateChatController

java.lang.Object
vaultWeb.controllers.PrivateChatController

@RestController @RequestMapping("/api/private-chats") public class PrivateChatController extends Object
  • 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

      @GetMapping("/devices") public List<DeviceDto> getPrivateChatDevices(@RequestParam Long privateChatId, org.springframework.security.core.Authentication authentication)
    • 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)