package org.asamk.signal.manager.api; import java.util.List; import java.util.Optional; public record Message( String messageText, List attachments, boolean viewOnce, List mentions, Optional quote, Optional sticker, List previews, Optional storyReply, List textStyles ) { public record Mention(RecipientIdentifier.Single recipient, int start, int length) {} public record Quote( long timestamp, RecipientIdentifier.Single author, String message, List mentions, List textStyles, List attachments ) { public record Attachment(String contentType, String filename, String preview) {} } public record Sticker(byte[] packId, int stickerId) {} public record Preview(String url, String title, String description, Optional image) {} public record StoryReply(long timestamp, RecipientIdentifier.Single author) {} }