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

25 lines
654 B
Java

package org.mercury_im.messenger.entity.chat;
import org.mercury_im.messenger.entity.Encryption;
import lombok.Data;
/**
* Interface that describes typical preferences in the context of a chat.
*/
@Data
public class ChatPreferences {
NotificationPreferences notificationPreferences;
boolean typingNotificationsSupported;
boolean sendTypingNotificationsEnabled;
boolean readNotificationsSupported;
boolean sendReadNotificationsEnabled;
Encryption encryption = Encryption.plain; // TODO: Fix
@Data
public static class NotificationPreferences {
boolean notifyOnMessage;
boolean notifyOnMention;
}
}