File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ service AdminService {
35
35
36
36
rpc getTrackForCar (CarLocationRequest ) returns (google .protobuf .StringValue );
37
37
38
+ rpc getCarStatus (CarStatusSlackRequest ) returns (CarStatusResponse );
39
+
40
+ rpc associateCarWithSlack (CarAddViaSlackRequest ) returns (CarStatusResponse );
41
+
42
+ rpc disassociateCarWithSlack (CarRemoveFromSlackRequest ) returns (CarStatusResponse );
43
+
38
44
rpc shutdown (google .protobuf .Empty ) returns (google .protobuf .Empty );
39
45
}
40
46
@@ -130,3 +136,30 @@ message CarLocationRequest {
130
136
string ipAddress = 2 ;
131
137
string key = 3 ;
132
138
}
139
+
140
+ message CarStatusSlackRequest {
141
+ string slackToken = 1 ;
142
+ }
143
+
144
+ message CarStatus {
145
+ string carNumber = 1 ;
146
+ string trackCode = 2 ;
147
+ bool online = 3 ;
148
+ string ipAddress = 4 ;
149
+ }
150
+
151
+ message CarStatusResponse {
152
+ repeated CarStatus statusList = 1 ;
153
+ }
154
+
155
+ message CarAddViaSlackRequest {
156
+ string ipAddress = 1 ;
157
+ string slackToken = 2 ;
158
+ string slackAppId = 3 ;
159
+ }
160
+
161
+ message CarRemoveFromSlackRequest {
162
+ string trackCode = 1 ;
163
+ string carNumber = 2 ;
164
+ string slackAppId = 3 ;
165
+ }
You can’t perform that action at this time.
0 commit comments