delthas / JavaSkype

A lightweight, comprehensive Java API for Skype using MSNP24
MIT License
72 stars 28 forks source link

Add a way to get the recent/last messages from a conversation (with user or group) #32

Open delthas opened 7 years ago

delthas commented 7 years ago

MrPowerGamerBR : There isn't any way to get the messages sent to a contact/group? Skype4J allows to get all the messages in a conversation with a contact/group, however JavaSkype doesn't have a method to do it. delthas : You mean the recent/last messages in a conversation? Like a User#getRecentMessages or a Group#getRecentMessages that returns a list of the last messages sent on a conversation? I can add that. MrPowerGamerBR : Yes, it would be awesome if you added that. :) (In Skype4J it is like this: .loadMessages(int amount) loads the messages and getAllMessages returns the messages loaded in chronological order (from older to newest))

MrPowerGamerBR commented 7 years ago

Hey look it's me! 😋

Erezbiox1 commented 7 years ago

How is it going...? I know you don't really work on the API, but me and many of my friends are still using it, and we need this method, please?

delthas commented 7 years ago

I'm beginning work on this. I'm planning to add a getMessages(long timestamp) method on User and Group that returns a Stream of messages, by lazy-loading them as the (pseudo-infinite) Stream is read.