configure grpc
This commit is contained in:
33
AZKiServer/Protos/types.proto
Normal file
33
AZKiServer/Protos/types.proto
Normal file
@@ -0,0 +1,33 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option csharp_namespace = "AZKiServer.RPC";
|
||||
package azki;
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
enum MediaType {
|
||||
None = 0;
|
||||
Image = 1;
|
||||
Video = 2;
|
||||
All = 3;
|
||||
}
|
||||
|
||||
message MediaList {
|
||||
repeated MediaEntry entries = 1;
|
||||
}
|
||||
|
||||
message MediaRangeRequest{
|
||||
MediaType type = 1;
|
||||
google.protobuf.Timestamp from = 2;
|
||||
google.protobuf.Timestamp to = 3;
|
||||
}
|
||||
|
||||
message MediaEntry {
|
||||
int32 version = 1;
|
||||
string id = 2;
|
||||
MediaType type = 3;
|
||||
string filePath = 4;
|
||||
int32 cameraId = 5;
|
||||
google.protobuf.Timestamp date = 6;
|
||||
}
|
||||
Reference in New Issue
Block a user