-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwitter.proto
More file actions
41 lines (35 loc) · 761 Bytes
/
Copy pathtwitter.proto
File metadata and controls
41 lines (35 loc) · 761 Bytes
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
syntax = "proto3";
package Kruczek.RgDev.Twitter;
option java_multiple_files = false;
option java_package = "it.kruczek.rgdev";
option java_outer_classname = "RgdevTwitter";
service TwitterBoard {
rpc GetTweets(Query) returns (stream Tweet) {}
}
enum ResultType {
MIXED = 0;
RECENT = 1;
POPULAR = 2;
}
message Query {
string q = 1;
string since = 2;
int32 count = 3;
string lang = 4;
ResultType type = 5;
repeated string tracks = 6;
repeated string follows = 7;
}
message Author {
string id = 1;
string name = 2;
string screenName = 3;
string avatar = 4;
}
message Tweet {
string id = 1;
string text = 2;
Author author = 3;
int32 retweetCount = 4;
int32 favoriteCount = 5;
}