Add more entities

This commit is contained in:
Paul Schaub 2019-11-07 00:59:56 +01:00
parent b23fd0daf0
commit 605fccf18d
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
5 changed files with 48 additions and 1 deletions

View File

@ -12,4 +12,7 @@ public interface Chat<
void setAccount(AC account);
ChatPreferences getChatPreferences();
void setChatPreferences(ChatPreferences chatPreferences);
}

View File

@ -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);
}
}

View File

@ -31,5 +31,4 @@ public interface Message<MA extends Address, MM extends MessageMetadata> {
MM getMetadata();
void setMetadata(MM metadata);
}

View File

@ -0,0 +1,8 @@
package org.mercury_im.messenger.core.entity;
public interface MessageContent {
String getBody();
void setBody(String body);
}

View File

@ -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")