Add more entities
This commit is contained in:
parent
b23fd0daf0
commit
605fccf18d
|
@ -12,4 +12,7 @@ public interface Chat<
|
|||
|
||||
void setAccount(AC account);
|
||||
|
||||
ChatPreferences getChatPreferences();
|
||||
|
||||
void setChatPreferences(ChatPreferences chatPreferences);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
package org.mercury_im.messenger.core.entity;
|
||||
|
||||
public interface ChatPreferences {
|
||||
|
||||
NotificationPreferences getNotificationPreference();
|
||||
|
||||
boolean setNotificationPreference(NotificationPreferences notificationPreferences);
|
||||
|
||||
boolean isTypingNotificationsSupported();
|
||||
|
||||
void setTypingNotificationsSupported(boolean typingNotificationsSupported);
|
||||
|
||||
boolean isSendTypingNotifications();
|
||||
|
||||
void setSendTypingNotifications(boolean sendTypingNotifications);
|
||||
|
||||
boolean isReadNotificationsSupported();
|
||||
|
||||
void setReadNotificationsSupported(boolean readNotificationsSupported);
|
||||
|
||||
boolean isSendReadNotifications();
|
||||
|
||||
void setSendReadNotifications(boolean sendReadNotifications);
|
||||
|
||||
|
||||
interface NotificationPreferences {
|
||||
|
||||
boolean isNotifyOnMessage();
|
||||
|
||||
void setNotifyOnMessage(boolean notify);
|
||||
|
||||
boolean isNotifyOnMention();
|
||||
|
||||
void setNotifyOnMention(boolean notify);
|
||||
}
|
||||
}
|
|
@ -31,5 +31,4 @@ public interface Message<MA extends Address, MM extends MessageMetadata> {
|
|||
MM getMetadata();
|
||||
|
||||
void setMetadata(MM metadata);
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package org.mercury_im.messenger.core.entity;
|
||||
|
||||
public interface MessageContent {
|
||||
|
||||
String getBody();
|
||||
|
||||
void setBody(String body);
|
||||
}
|
|
@ -10,6 +10,7 @@ dependencies {
|
|||
|
||||
// implementation project(":core")
|
||||
implementation project(":entity_xmpp")
|
||||
implementation project(":repository")
|
||||
|
||||
// JXMPP for Jid types. Version comes from smacks version.gradle
|
||||
api("org.jxmpp:jxmpp-jid:$jxmppVersion")
|
||||
|
|
Loading…
Reference in New Issue