2024-07-31 09:24:05 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
package stillbox;
|
|
|
|
option go_package = "./pb";
|
|
|
|
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
2024-08-04 00:55:28 -04:00
|
|
|
message Message {
|
|
|
|
oneof toClient_message {
|
|
|
|
Call call = 1;
|
|
|
|
Notification notification = 2;
|
|
|
|
UserPopup popup = 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-31 09:24:05 -04:00
|
|
|
message Call {
|
2024-08-04 00:55:28 -04:00
|
|
|
string audioName = 1;
|
|
|
|
string audioType = 2;
|
|
|
|
google.protobuf.Timestamp dateTime = 3;
|
2024-07-31 09:24:05 -04:00
|
|
|
int32 system = 4;
|
|
|
|
int32 talkgroup = 5;
|
|
|
|
int32 source = 6;
|
|
|
|
int64 frequency = 7;
|
|
|
|
repeated int64 frequencies = 8;
|
|
|
|
repeated int32 patches = 9;
|
|
|
|
repeated int32 sources = 10;
|
|
|
|
bytes audio = 11;
|
|
|
|
}
|
2024-08-04 00:55:28 -04:00
|
|
|
|
|
|
|
message UserPopup {
|
|
|
|
string msg = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Notification {
|
|
|
|
google.protobuf.Timestamp dateTime = 1;
|
|
|
|
string msg = 2;
|
|
|
|
string actionUrl = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Command {
|
|
|
|
oneof command {
|
|
|
|
Live liveCommand = 1;
|
|
|
|
Search searchCommand = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
enum LiveState {
|
|
|
|
LS_STOPPED = 0;
|
|
|
|
LS_LIVE = 1;
|
|
|
|
LS_PAUSED = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Live {
|
|
|
|
LiveState state = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Search {
|
|
|
|
}
|