Release test versions of telegram bot and AutomatizationCore

This commit is contained in:
2021-02-04 00:40:23 +03:00
commit 62c9e6165e
19 changed files with 1187 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
syntax = "proto3";
option csharp_namespace = "AutomatizationCoreApp";
option go_package = "nikozavr.ru/plexautomatization/grpc";
package grpc;
service Automatizator {
rpc AddRequest(RequestInfo) returns (OperationResult);
rpc GetUserRequests(UserInfo) returns (RequestLists);
}
message OperationResult {
bool success = 1;
string message = 2;
}
message RequestInfo {
int32 user_id = 1;
string media_name = 2;
}
message UserInfo {
int32 user_id = 1;
}
message RequestLists {
repeated RequestStatus request_statuses = 1;
}
message RequestStatus {
enum Status {
ACCEPTED = 0;
DISLINED = 1;
DOWNLOADING = 2;
DOWNLOADED = 3;
ADDED = 4;
}
string media_name = 1;
Status status = 2;
string info = 3;
}