]>
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
,
9 List
<Mention
> mentions
,
10 Optional
<Quote
> quote
,
11 Optional
<Sticker
> sticker
,
12 List
<Preview
> previews
,
13 Optional
<StoryReply
> storyReply
16 public record Mention(RecipientIdentifier
.Single recipient
, int start
, int length
) {}
18 public record Quote(long timestamp
, RecipientIdentifier
.Single author
, String message
, List
<Mention
> mentions
) {}
20 public record Sticker(byte[] packId
, int stickerId
) {}
22 public record Preview(String url
, String title
, String description
, Optional
<String
> image
) {}
24 public record StoryReply(long timestamp
, RecipientIdentifier
.Single author
) {}