Uses of Class
fr.utc.miage.sporttrack.entity.user.communication.Message
Packages that use Message
Package
Description
-
Uses of Message in fr.utc.miage.sporttrack.repository.user.communication
Methods in fr.utc.miage.sporttrack.repository.user.communication that return types with arguments of type MessageModifier and TypeMethodDescriptionMessageRepository.findByInitiatorIdOrRecipientIdOrderBySentAtDesc(Integer initiatorId, Integer recipientId) Finds all messages in which the specified athlete is either the sender or the recipient, ordered by send time descending.MessageRepository.findConversation(Integer firstId, Integer secondId) Retrieves the full conversation between two athletes, ordered by send time ascending. -
Uses of Message in fr.utc.miage.sporttrack.service.user.communication
Methods in fr.utc.miage.sporttrack.service.user.communication that return MessageModifier and TypeMethodDescriptionMessageService.sendMessage(Integer senderId, Integer recipientId, String content) Sends a message from one athlete to another.Methods in fr.utc.miage.sporttrack.service.user.communication that return types with arguments of type MessageModifier and TypeMethodDescriptionMessageService.getConversation(Integer currentUserId, Integer friendId) Retrieves the full conversation between two friends and marks all messages as seen.MessageService.getLatestMessageByFriend(Integer athleteId) Returns a map of friend identifiers to their most recent message with the given athlete.Methods in fr.utc.miage.sporttrack.service.user.communication with parameters of type MessageModifier and TypeMethodDescriptionvoidNotificationService.notifyMessageReceived(Message message) Sends a notification to the message recipient that a new message has been received.