Mercury-IM/entity/src/main/java/org/mercury_im/messenger/entity/chat/ChatPreferences.java

25 lines
654 B
Java
Raw Normal View History

2019-11-18 23:51:27 +01:00
package org.mercury_im.messenger.entity.chat;
2019-11-07 00:59:56 +01:00
import org.mercury_im.messenger.entity.Encryption;
2020-05-16 15:53:54 +02:00
import lombok.Data;
2019-12-06 20:48:27 +01:00
/**
* Interface that describes typical preferences in the context of a chat.
*/
2020-05-16 15:53:54 +02:00
@Data
public class ChatPreferences {
NotificationPreferences notificationPreferences;
boolean typingNotificationsSupported;
boolean sendTypingNotificationsEnabled;
boolean readNotificationsSupported;
boolean sendReadNotificationsEnabled;
Encryption encryption = Encryption.plain; // TODO: Fix
2020-05-16 15:53:54 +02:00
@Data
public static class NotificationPreferences {
boolean notifyOnMessage;
boolean notifyOnMention;
2019-11-07 00:59:56 +01:00
}
}