Removed unused method in chatservice

This commit is contained in:
Rohan Sircar 2020-05-27 17:00:45 +05:30
parent 7ff31c45ee
commit d9bcb7f76f
2 changed files with 13 additions and 12 deletions

View File

@ -6,14 +6,21 @@ import java.util.List;
import org.ros.chatto.dto.ChatMessageDTO;
import org.ros.chatto.dto.MessageCipherDTO;
import org.ros.chatto.dto.ReencryptionDTO;
import org.springframework.data.domain.PageRequest;
public interface ChatService {
public ChatMessageDTO createMessage(String fromUser, String toUser, MessageCipherDTO messageCipherDTO);
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 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);
public List<ChatMessageDTO> getAllMessages(String name, String userName, PageRequest pageRequest);
public List<ReencryptionDTO> getAllMessagesForReencryption(String fromUser,
String toUser);
}

View File

@ -102,10 +102,4 @@ public class ChatServiceImpl implements ChatService {
messageCipherRepository.saveAll(messageCiphers);
}
@Override
public List<ChatMessageDTO> getAllMessages(final String name,
final String userName, final PageRequest pageRequest) {
// TODO Auto-generated method stub
return null;
}
}