2019-11-18 23:51:27 +01:00
|
|
|
package org.mercury_im.messenger.entity.chat;
|
2019-11-08 00:47:17 +01:00
|
|
|
|
2019-11-18 23:51:27 +01:00
|
|
|
import org.mercury_im.messenger.entity.Account;
|
2019-11-03 06:33:52 +01:00
|
|
|
|
2019-12-06 20:48:27 +01:00
|
|
|
/**
|
|
|
|
* Generic interface defining shared properties of chats.
|
|
|
|
*
|
|
|
|
* Child interfaces of {@link Chat} are {@link DirectChat} and {@link GroupChat}.
|
|
|
|
*/
|
2019-11-18 00:04:28 +01:00
|
|
|
public interface Chat {
|
2019-11-03 06:33:52 +01:00
|
|
|
|
|
|
|
long getId();
|
|
|
|
|
|
|
|
void setId(long id);
|
|
|
|
|
2019-11-18 00:04:28 +01:00
|
|
|
Account getAccount();
|
2019-11-03 06:33:52 +01:00
|
|
|
|
2019-11-18 00:04:28 +01:00
|
|
|
void setAccount(Account account);
|
2019-11-03 06:33:52 +01:00
|
|
|
|
2019-11-07 00:59:56 +01:00
|
|
|
ChatPreferences getChatPreferences();
|
|
|
|
|
|
|
|
void setChatPreferences(ChatPreferences chatPreferences);
|
2019-11-03 06:33:52 +01:00
|
|
|
}
|