]>
nmode's Git Repositories - signal-cli/blob - lib/src/main/java/org/asamk/signal/manager/api/Message.java
1 package org
.asamk
.signal
.manager
.api
;
4 import java
.util
.Optional
;
8 List
<String
> attachments
,
10 List
<Mention
> mentions
,
11 Optional
<Quote
> quote
,
12 Optional
<Sticker
> sticker
,
13 List
<Preview
> previews
,
14 Optional
<StoryReply
> storyReply
,
15 List
<TextStyle
> textStyles
18 public record Mention(RecipientIdentifier
.Single recipient
, int start
, int length
) {}
22 RecipientIdentifier
.Single author
,
24 List
<Mention
> mentions
,
25 List
<TextStyle
> textStyles
,
26 List
<Attachment
> attachments
29 public record Attachment(String contentType
, String filename
, String preview
) {}
32 public record Sticker(byte[] packId
, int stickerId
) {}
34 public record Preview(String url
, String title
, String description
, Optional
<String
> image
) {}
36 public record StoryReply(long timestamp
, RecipientIdentifier
.Single author
) {}