mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-09-26 17:59:34 +02:00
Add more entities
This commit is contained in:
parent
b23fd0daf0
commit
605fccf18d
|
@ -12,4 +12,7 @@ public interface Chat<
|
||||||
|
|
||||||
void setAccount(AC account);
|
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();
|
MM getMetadata();
|
||||||
|
|
||||||
void setMetadata(MM metadata);
|
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(":core")
|
||||||
implementation project(":entity_xmpp")
|
implementation project(":entity_xmpp")
|
||||||
|
implementation project(":repository")
|
||||||
|
|
||||||
// JXMPP for Jid types. Version comes from smacks version.gradle
|
// JXMPP for Jid types. Version comes from smacks version.gradle
|
||||||
api("org.jxmpp:jxmpp-jid:$jxmppVersion")
|
api("org.jxmpp:jxmpp-jid:$jxmppVersion")
|
||||||
|
|
Loading…
Reference in a new issue