-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwitter.fbs
More file actions
82 lines (72 loc) · 1.53 KB
/
twitter.fbs
File metadata and controls
82 lines (72 loc) · 1.53 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// FlatBuffers schema generated from Swift struct `TwitterArchive`.
// Namespace helps organize the schema.
namespace Twitter;
// Root table
table TwitterArchive {
statuses: [Status];
}
table Status {
id: ulong;
lang: string;
text: string;
source: string;
metadata: [MetadataEntry]; // Map<String,String> → represented as key/value pairs
user: User;
place: string;
}
// Representing metadata as an array of key/value pairs
table MetadataEntry {
key: string;
value: string;
}
table StatusEntities {
hashtags: [Hashtag];
media: [MediaItem];
}
table Hashtag {
indices: [ulong];
text: string;
}
table MediaItem {
display_url: string;
expanded_url: string;
id: ulong;
indices: [ulong];
media_url: string;
source_status_id: ulong;
type: string;
url: string;
sizes: [SizeEntry]; // map<string, Size> → key/value entries
}
// Representing dictionary of sizes
table SizeEntry {
key: string;
value: Size;
}
table Size {
h: uint64;
w: uint64;
resize: string;
}
table User {
created_at: string;
default_profile: bool;
description: string;
favourites_count: uint64;
followers_count: uint64;
friends_count: uint64;
id: uint64;
lang: string;
name: string;
profile_background_color: string;
profile_background_image_url: string;
profile_banner_url: string; // optional → use default null
profile_image_url: string;
profile_use_background_image: bool;
screen_name: string;
statuses_count: uint64;
url: string;
verified: bool;
}
// Specify the root type
root_type TwitterArchive;