-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdatabase.proto
55 lines (44 loc) · 1.18 KB
/
database.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
syntax = "proto3";
package signal;
option java_package = "org.thoughtcrime.securesms.database.model.databaseprotos";
option java_multiple_files = true;
// DEPRECATED -- only here for database migrations
message ReactionList {
option deprecated = true;
message Reaction {
string emoji = 1;
uint64 author = 2;
uint64 sentTime = 3;
uint64 receivedTime = 4;
}
repeated Reaction reactions = 1;
}
message BodyRangeList {
message BodyRange {
enum Style {
BOLD = 0;
ITALIC = 1;
SPOILER = 2;
STRIKETHROUGH = 3;
MONOSPACE = 4;
}
message Button {
string label = 1;
string action = 2;
}
int32 start = 1;
int32 length = 2;
oneof associatedValue {
string mentionUuid = 3;
Style style = 4;
string link = 5;
Button button = 6;
}
}
repeated BodyRange ranges = 1;
}