Protobufs compile

This commit is contained in:
watsonb8
2019-05-31 10:17:14 -04:00
parent 9354c0b27b
commit 6503d2c410
9 changed files with 228 additions and 42 deletions

View File

@ -0,0 +1,34 @@
syntax = "proto3";
package Aurora.Backend.Proto;
// PartyServic definition
service PartyService{
//Party Service
rpc JoinParty(JoinPartyRequest) returns (JoinPartyResponse);
rpc LeaveParty(LeavePartyRequest) returns (LeavePartyResponse);
}
message JoinPartyRequest {
string clientId = 1;
string userName = 2;
string ipAddress = 3;
string port = 4;
}
message JoinPartyResponse {
PartyJoinedStatusEnum status = 1;
}
message LeavePartyRequest {
string clientId = 1;
}
message LeavePartyResponse {
PartyJoinedStatusEnum status = 1;
}
enum PartyJoinedStatusEnum {
Connected = 0;
Disconnected = 1;
}

View File

@ -0,0 +1,21 @@
syntax = "proto3";
package Aurora.Backend.Proto;
import "Backend/Proto/general.proto";
service PlaybackService {
//Playback Service
rpc GetPartyStream(Empty) returns (stream Chunk) {};
}
enum TransferStatusCode {
Unknown = 0;
Ok = 1;
Failed = 2;
}
message TransferStatus {
string Message = 1;
TransferStatusCode Code = 2;
}

View File

@ -0,0 +1,10 @@
syntax = "proto3";
package Aurora.Backend.Proto;
message Chunk {
bytes Content = 1;
}
message Empty{
}