You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
803 B
26 lines
803 B
package org.ros.chatto.service;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
import org.ros.chatto.dto.ChatMessageDTO;
|
|
import org.ros.chatto.dto.MessageCipherDTO;
|
|
import org.ros.chatto.dto.ReencryptionDTO;
|
|
|
|
public interface ChatService {
|
|
public ChatMessageDTO createMessage(String fromUser, String toUser,
|
|
MessageCipherDTO messageCipherDTO);
|
|
|
|
public List<ChatMessageDTO> getAllMessages(String fromUser, String toUser);
|
|
|
|
public List<ChatMessageDTO> getMessagePage(String fromUser, String toUser,
|
|
int page, int size);
|
|
|
|
public List<ChatMessageDTO> getNewMessages(String fromUser, String toUser,
|
|
Date lastMessageTime);
|
|
|
|
public void reencryptMessages(List<ReencryptionDTO> reencryptionDTOs);
|
|
|
|
public List<ReencryptionDTO> getAllMessagesForReencryption(String fromUser,
|
|
String toUser);
|
|
}
|